From aef35b526e4fef082f4bbfd6ffb5cbbc520ff629 Mon Sep 17 00:00:00 2001 From: Maximilian Seidler Date: Tue, 19 Nov 2024 13:53:11 +0100 Subject: [PATCH] Fix unwanted unlocks when auth client subprocesses exit with 0 --- howdy/src/pam/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/howdy/src/pam/main.cc b/howdy/src/pam/main.cc index d1b8e347..84986555 100644 --- a/howdy/src/pam/main.cc +++ b/howdy/src/pam/main.cc @@ -290,7 +290,7 @@ auto identify(pam_handle_t *pamh, int flags, int argc, const char **argv, // zombie process) optional_task child_task([&] { int status; - wait(&status); + waitpid(child_pid, &status, 0); { std::unique_lock lock(mutx); if (confirmation_type == ConfirmationType::Unset) {