Add function name in "command resumed" debug message

This commit is contained in:
Todd C. Miller
2016-07-28 06:23:39 -06:00
parent 383debee9f
commit 4352bb9ca9

View File

@@ -1169,7 +1169,8 @@ handle_sigchld(int backchannel, struct command_status *cstat)
}
if (WIFCONTINUED(status)) {
sudo_debug_printf(SUDO_DEBUG_INFO, "command (%d) resumed", cmnd_pid);
sudo_debug_printf(SUDO_DEBUG_INFO, "%s: command (%d) resumed",
__func__, cmnd_pid);
} else if (WIFSTOPPED(status)) {
if (sig2str(WSTOPSIG(status), signame) == -1)
snprintf(signame, sizeof(signame), "%d", WSTOPSIG(status));