From 0c3cf16e675a65a15b9167c45179cf5c66b826e7 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 27 Oct 2023 14:53:39 +0000 Subject: s6-supervise: don't warn on ENOENT for ./finish Signed-off-by: Laurent Bercot --- src/supervision/s6-supervise.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 ; } -- cgit 1.4.1