From f5acc16fa69ba10d4e6cf5a4d0a4a080828cb0ab Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 28 Nov 2021 00:17:17 +0000 Subject: bugfix: shutdownd: flush the writes to stage 4.new in the container case Signed-off-by: Laurent Bercot --- src/shutdown/s6-linux-init-shutdownd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shutdown') 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") ; } -- cgit v1.2.3