Skip to content

Commit

Permalink
Merge pull request #973 from PaideiaDilemma/beta
Browse files Browse the repository at this point in the history
Fix unwanted unlocks when auth client subprocesses exit with 0
  • Loading branch information
boltgolt authored Feb 1, 2025
2 parents 85534ba + aef35b5 commit 0a68a4b
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 @@ -281,7 +281,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 0a68a4b

Please sign in to comment.