about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-10-27 14:53:39 +0000
committerLaurent Bercot <ska@appnovation.com>2023-10-27 14:53:39 +0000
commit0c3cf16e675a65a15b9167c45179cf5c66b826e7 (patch)
tree558ead2e6344497cef9d70c8bc11c2b6ce7a903f /src
parent1eb27607b957674e65c9d86d73ab49e7f3c182c5 (diff)
downloads6-0c3cf16e675a65a15b9167c45179cf5c66b826e7.tar.gz
s6-0c3cf16e675a65a15b9167c45179cf5c66b826e7.tar.xz
s6-0c3cf16e675a65a15b9167c45179cf5c66b826e7.zip
s6-supervise: don't warn on ENOENT for ./finish
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src')
-rw-r--r--src/supervision/s6-supervise.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/supervision/s6-supervise.c b/src/supervision/s6-supervise.c
index 488150c..2f3b9a7 100644
--- a/src/supervision/s6-supervise.c
+++ b/src/supervision/s6-supervise.c
@@ -446,7 +446,7 @@ static int uplastup_z (void)
   status.pid = cspawn("./finish", cargv, (char const *const *)environ, CSPAWN_FLAGS_SELFPIPE_FINISH | CSPAWN_FLAGS_SETSID, 0, 0) ;
   if (!status.pid)
   {
-    strerr_warnwu2sys("spawn ", "./finish") ;
+    if (errno != ENOENT) strerr_warnwu2sys("spawn ", "./finish") ;
     set_down_and_ready("dD", 2) ;
     return 0 ;
   }