summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-06-19 19:01:08 +0000
committerLaurent Bercot <ska@appnovation.com>2023-06-19 19:01:08 +0000
commit942c5132b277053fd91c51bf7fae627e7665b27f (patch)
treecd8fcd64ae1c59f4d3a0e757208d311a5601ad64
parentd6e214a83b361ff000d0d28952f836639896cd85 (diff)
downloads6-linux-init-942c5132b277053fd91c51bf7fae627e7665b27f.tar.xz
Rescan after unsupervising tree in shutdownd
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r--src/shutdown/s6-linux-init-shutdownd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shutdown/s6-linux-init-shutdownd.c b/src/shutdown/s6-linux-init-shutdownd.c
index 8b2741a..1f01076 100644
--- a/src/shutdown/s6-linux-init-shutdownd.c
+++ b/src/shutdown/s6-linux-init-shutdownd.c
@@ -248,6 +248,7 @@ static inline void unsupervise_tree (void)
if (errno)
strerr_diefu1sys(111, "readdir " SCANDIRFULL) ;
dir_close(dir) ;
+ s6_svc_write(SCANDIRFULL S6_SVSCAN_CTLDIR "/control", "a", 1) ;
}
int main (int argc, char const *const *argv)