Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions centipede/runner_fork_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,13 @@ void ForkServerCallMeVeryEarly() {
if (sigwait(&wait_sigset, &sig) != 0) {
Exit("###sigwait() failed\n");
}
if (sig == -1) {
// TODO(xinhaoyuan): This should never happen, but I've seen it happen
// on MacOS. Need further investigation.
Log("###sigwait() returns 0 without setting signal number!! Assume "
"SIGCHLD\n");
sig = SIGCHLD;
}
if (sig == SIGINT) {
Log("###Get SIGINT - ignoring\n");
} else if (sig == SIGTERM) {
Expand Down
Loading