summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-06-20 19:00:54 +0000
committerLaurent Bercot <ska@appnovation.com>2023-06-20 19:00:54 +0000
commit77d95a724615694bab1b4f6cb495576a4a172882 (patch)
treeb714f8a7bb7fafd705a023f9cd1c4d7ec723b5bd
parent942c5132b277053fd91c51bf7fae627e7665b27f (diff)
downloads6-linux-init-77d95a724615694bab1b4f6cb495576a4a172882.tar.xz
Better unsupervise_tree in shutdownd
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r--src/shutdown/s6-linux-init-shutdownd.c4
1 files 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)