From 77d95a724615694bab1b4f6cb495576a4a172882 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 20 Jun 2023 19:00:54 +0000 Subject: Better unsupervise_tree in shutdownd Signed-off-by: Laurent Bercot --- src/shutdown/s6-linux-init-shutdownd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shutdown/s6-linux-init-shutdownd.c b/src/shutdown/s6-linux-init-shutdownd.c index 1f01076..5e85404 100644 --- a/src/shutdown/s6-linux-init-shutdownd.c +++ b/src/shutdown/s6-linux-init-shutdownd.c @@ -242,13 +242,13 @@ static inline void unsupervise_tree (void) unlinkat(fdd, d->d_name, 0) ; /* if it still fails, too bad, it will restart in stage 4 and race */ } - s6_svc_writectl(fn, S6_SUPERVISE_CTLDIR, "dx", 2) ; + s6_svc_writectl(fn, S6_SUPERVISE_CTLDIR, "d", 1) ; } } if (errno) strerr_diefu1sys(111, "readdir " SCANDIRFULL) ; dir_close(dir) ; - s6_svc_write(SCANDIRFULL S6_SVSCAN_CTLDIR "/control", "a", 1) ; + s6_svc_write(SCANDIRFULL S6_SVSCAN_CTLDIR "/control", "an", 2) ; } int main (int argc, char const *const *argv) -- cgit v1.2.3