- // otherwise, child probably signalled, which we don't care
- // about (please don't tell youth welfare), so try again
+ if (WIFSIGNALED(status)) {
+ // signalled termination
+ return WTERMSIG(status);
+ }
+ // otherwise, child probably signalled stop/continue, which we
+ // don't care about (please don't tell youth welfare), so try again