If st->expecting_userv_exit, we are expecting userv to exit 0 or die
with SIGTERM. If anything else happens, we should at least log it.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
"(expected %d)\n",pid,st->pid);
return;
}
"(expected %d)\n",pid,st->pid);
return;
}
- if (!st->expecting_userv_exit) {
+ if (!(st->expecting_userv_exit &&
+ (!status ||
+ (WIFSIGNALED(status) && WTERMSIG(status)==SIGTERM)))) {
lg_exitstatus(0,st->slip.nl.name,0,
st->expecting_userv_exit ? M_WARNING : M_FATAL,
status,"userv");
lg_exitstatus(0,st->slip.nl.name,0,
st->expecting_userv_exit ? M_WARNING : M_FATAL,
status,"userv");