diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2020-12-09 18:19:21 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2020-12-09 18:19:21 +0000 |
commit | ca8d2c96ea09cb33ff6fef33c0314c24fc6a026a (patch) | |
tree | 08cfbbbb0c7dc84154dea30e86fe2adc582d1d45 /src/misc | |
parent | 2fa0acdd248c006270010196ad02e530d8ab09ea (diff) | |
download | s6-linux-init-ca8d2c96ea09cb33ff6fef33c0314c24fc6a026a.tar.xz |
Make it work with the new s6. Add s6-linux-init-nuke.
Diffstat (limited to 'src/misc')
-rw-r--r-- | src/misc/deps-exe/s6-linux-init-nuke | 0 | ||||
-rw-r--r-- | src/misc/s6-linux-init-nuke.c | 8 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/misc/deps-exe/s6-linux-init-nuke b/src/misc/deps-exe/s6-linux-init-nuke new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/src/misc/deps-exe/s6-linux-init-nuke 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 ; +} |