commit 0c3cf16e675a65a15b9167c45179cf5c66b826e7
parent 1eb27607b957674e65c9d86d73ab49e7f3c182c5
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date: Fri, 27 Oct 2023 14:53:39 +0000
s6-supervise: don't warn on ENOENT for ./finish
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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 ;
}