summaryrefslogtreecommitdiff
path: root/src/supervision/s6-supervise.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/supervision/s6-supervise.c')
-rw-r--r--src/supervision/s6-supervise.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/supervision/s6-supervise.c b/src/supervision/s6-supervise.c
index 8bb55c8..2e8ce6a 100644
--- a/src/supervision/s6-supervise.c
+++ b/src/supervision/s6-supervise.c
@@ -436,7 +436,13 @@ static void finishtimeout (void)
static void finish_z (void)
{
- set_down_and_ready("D", 1) ;
+ int wstat = (int)status.pid ;
+ if (WIFEXITED(wstat) && WEXITSTATUS(wstat) == 125)
+ {
+ status.flagwant = 0 ;
+ set_down_and_ready("OD", 2) ;
+ }
+ else set_down_and_ready("D", 1) ;
}
static void finish_u (void)