diff --git a/pam_shield_lib.c b/pam_shield_lib.c index cc44099..a8600d0 100644 --- a/pam_shield_lib.c +++ b/pam_shield_lib.c @@ -709,7 +709,7 @@ int run_trigger(char *cmd, _pam_shield_db_rec_t *record) { int status; while ((err = waitpid(pid, &status, 0)) > 0) - ; + logmsg(LOG_DEBUG, "child %d exited with status %d", err, WEXITSTATUS(status)); if (WEXITSTATUS(status) != 0) return -1;