diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2021-11-28 00:17:17 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2021-11-28 00:17:17 +0000 |
commit | f5acc16fa69ba10d4e6cf5a4d0a4a080828cb0ab (patch) | |
tree | 8e2aae8b13b234ab5b88cee85f8b08e8880c1be7 /src | |
parent | 50f5f2c27b746f07ea9531da81e82e794363d520 (diff) | |
download | s6-linux-init-f5acc16fa69ba10d4e6cf5a4d0a4a080828cb0ab.tar.xz |
bugfix: shutdownd: flush the writes to stage 4.new in the container case
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/shutdown/s6-linux-init-shutdownd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shutdown/s6-linux-init-shutdownd.c b/src/shutdown/s6-linux-init-shutdownd.c index 9e86ec6..d9fba7e 100644 --- a/src/shutdown/s6-linux-init-shutdownd.c +++ b/src/shutdown/s6-linux-init-shutdownd.c @@ -181,7 +181,7 @@ static inline void prepare_stage4 (char const *basedir, char what) || (!nologger && buffer_puts(&b, EXECLINE_EXTBINPREFIX "foreground { " S6_EXTBINPREFIX "s6-svc -xc -- " SCANPREFIX LOGGER_SERVICEDIR " }\n ") < 0) - || buffer_puts(&b, + || buffer_putsflush(&b, S6_EXTBINPREFIX "s6-svscanctl -b -- " SCANDIRFULL "\n}\n") < 0) strerr_diefu2sys(111, "write to ", STAGE4_FILE ".new") ; } |