summaryrefslogtreecommitdiff
path: root/src/misc/s6-linux-init-nuke.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2020-12-09 18:19:21 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2020-12-09 18:19:21 +0000
commitca8d2c96ea09cb33ff6fef33c0314c24fc6a026a (patch)
tree08cfbbbb0c7dc84154dea30e86fe2adc582d1d45 /src/misc/s6-linux-init-nuke.c
parent2fa0acdd248c006270010196ad02e530d8ab09ea (diff)
downloads6-linux-init-ca8d2c96ea09cb33ff6fef33c0314c24fc6a026a.tar.xz
Make it work with the new s6. Add s6-linux-init-nuke.
Diffstat (limited to 'src/misc/s6-linux-init-nuke.c')
-rw-r--r--src/misc/s6-linux-init-nuke.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/misc/s6-linux-init-nuke.c b/src/misc/s6-linux-init-nuke.c
new file mode 100644
index 0000000..93326e5
--- /dev/null
+++ b/src/misc/s6-linux-init-nuke.c
@@ -0,0 +1,8 @@
+/* ISC license. */
+
+#include <signal.h>
+
+int main (void)
+{
+ return kill(-1, SIGKILL) < 0 ;
+}