summaryrefslogtreecommitdiff
path: root/src/shutdown/hpr.h
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-02-12 18:17:50 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-02-12 18:17:50 +0000
commitf94e976efbdfdd885ecc81745542bedf315768fd (patch)
tree79ebb144d9a3cc62ab851c753414adb94b168438 /src/shutdown/hpr.h
parent355a75e08bbc8af8af97576bad07471dd1b431d8 (diff)
downloads6-linux-init-f94e976efbdfdd885ecc81745542bedf315768fd.tar.xz
bugfix: wall message on non-immediate shutdown(8)
Diffstat (limited to 'src/shutdown/hpr.h')
-rw-r--r--src/shutdown/hpr.h6
1 files changed, 5 insertions, 1 deletions
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 <stddef.h>
+#include <sys/uio.h>
#include <skalibs/tai.h>
#include <skalibs/djbunix.h>
#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