Skip to content

Commit

Permalink
Fix unwanted unlocks when auth client subprocesses exit with 0
Browse files Browse the repository at this point in the history
  • Loading branch information
PaideiaDilemma committed Nov 19, 2024
1 parent aa75c76 commit aef35b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion howdy/src/pam/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ auto identify(pam_handle_t *pamh, int flags, int argc, const char **argv,
// zombie process)
optional_task<int> child_task([&] {
int status;
wait(&status);
waitpid(child_pid, &status, 0);
{
std::unique_lock<std::mutex> lock(mutx);
if (confirmation_type == ConfirmationType::Unset) {
Expand Down

0 comments on commit aef35b5

Please sign in to comment.