diff --git a/howdy/src/pam/main.cc b/howdy/src/pam/main.cc index d1b8e34..8498655 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) {