summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/s6-rc/s6-rc-update.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/s6-rc/s6-rc-update.c b/src/s6-rc/s6-rc-update.c
index 7308c5b..eb6104a 100644
--- a/src/s6-rc/s6-rc-update.c
+++ b/src/s6-rc/s6-rc-update.c
@@ -779,6 +779,19 @@ int main (int argc, char const *const *argv, char const *const *envp)
strerr_warni1x("updating s6rc-fdholder pipe storage") ;
update_fdholder(&olddb, oldstate, &newdb, newstate, invimage, envp, &deadline) ;
+
+ /* Clean up scandir */
+
+ if (verbosity >= 2)
+ strerr_warni1x("cleaning up scan directory") ;
+
+ {
+ char scdir[livelen + 9] ;
+ memcpy(scdir, live, livelen) ;
+ memcpy(scdir + livelen, "/scandir", 9) ;
+ if (s6_svc_writectl(scdir, S6_SVSCAN_CTLDIR, "an", 2) <= 0)
+ strerr_warnwu2sys("send command to s6-svscan on ", scdir) ;
+ }
}