Add debug warning when we have wait status but don't overwrite the
existing cstat.
This commit is contained in:
@@ -211,6 +211,10 @@ mon_handle_sigchld(struct monitor_closure *mc)
|
||||
send_status(mc->backchannel, mc->cstat);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
sudo_debug_printf(SUDO_DEBUG_WARN,
|
||||
"%s: not overwriting command status %d,%d with %d,%d",
|
||||
__func__, mc->cstat->type, mc->cstat->val, CMD_WSTATUS, status);
|
||||
}
|
||||
|
||||
debug_return;
|
||||
|
Reference in New Issue
Block a user