From f94e976efbdfdd885ecc81745542bedf315768fd Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 12 Feb 2021 18:17:50 +0000 Subject: bugfix: wall message on non-immediate shutdown(8) --- src/shutdown/hpr.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/shutdown/hpr.h') diff --git a/src/shutdown/hpr.h b/src/shutdown/hpr.h index 3dd0375..2c545a5 100644 --- a/src/shutdown/hpr.h +++ b/src/shutdown/hpr.h @@ -4,18 +4,22 @@ #define HPR_H #include +#include #include #include #include "initctl.h" -#define HPR_WALL_BANNER "\n\n*** WARNING ***\nThe system is going down NOW!\n" +#define HPR_WALL_PRE "\n\n*** WARNING ***\nThe system is going down " +#define HPR_WALL_POST "!\n" +#define HPR_WALL_BANNER HPR_WALL_PRE "NOW" HPR_WALL_POST #define hpr_send(s, n) openwritenclose_unsafe(INITCTL, (s), n) #define hpr_cancel() hpr_send("c", 1) extern int hpr_shutdown (unsigned int, tain_t const *, unsigned int) ; extern void hpr_wall (char const *) ; +extern void hpr_wallv (struct iovec const *, unsigned int) ; extern void hpr_confirm_hostname (void) ; #endif -- cgit v1.2.3