Commit e422c767 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Tollef Fog Heen

Sense of exit-code test was wrong.

parent cb604ba3
......@@ -479,7 +479,7 @@ mgt_sigchld(const struct vev *e, int what)
vsb = VSB_new_auto();
XXXAN(vsb);
VSB_printf(vsb, "Child (%d) %s", r, status ? "died" : "ended");
if (!WIFEXITED(status) && WEXITSTATUS(status)) {
if (WIFEXITED(status) && WEXITSTATUS(status)) {
VSB_printf(vsb, " status=%d", WEXITSTATUS(status));
exit_status |= 0x20;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment