From fcb872818112b96f2906211d203d11578a38cf9e Mon Sep 17 00:00:00 2001 From: AwesomeAdam54321 Date: Sun, 30 May 2021 06:10:07 +0200 Subject: [PATCH] This is the pause executable. It implements oneshot functionality in runit. Man Page:https://man.voidlinux.org/pause You can find pause.c here:https://github.com/void-linux/void-runit/blob/master/pause.c --- pause.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pause.c diff --git a/pause.c b/pause.c new file mode 100644 index 0000000..553eba8 --- /dev/null +++ b/pause.c @@ -0,0 +1,19 @@ +#include +#include + +static void +nop(int sig) +{ +} + +int +main() +{ + signal(SIGTERM, nop); + signal(SIGINT, nop); + signal(SIGHUP, SIG_IGN); + + pause(); + + return 0; +} \ No newline at end of file