Skip to content

Commit

Permalink
add debug message to waitpid
Browse files Browse the repository at this point in the history
  • Loading branch information
h0tw1r3 committed Apr 23, 2024
1 parent 272ca98 commit eaaccc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pam_shield_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit eaaccc4

Please sign in to comment.