summaryrefslogtreecommitdiff
path: root/core/runit/pause.c
diff options
context:
space:
mode:
authorrawnix ports <ports@rawnix.org>2026-09-26 18:19:05 +0000
committerrawnix ports <ports@rawnix.org>2026-09-26 18:19:05 +0000
commitc82e88dd00d1b0b7fcfb4e5628d99611388cef6f (patch)
tree56d864b5a5c6c145edd96178ae219a8f90e191a6 /core/runit/pause.c
downloadports-c82e88dd00d1b0b7fcfb4e5628d99611388cef6f.tar.gz
sync 2026-09-26 18:19 UTC
1672 files changed, 151396 insertions(+)
Diffstat (limited to 'core/runit/pause.c')
-rw-r--r--core/runit/pause.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/core/runit/pause.c b/core/runit/pause.c
new file mode 100644
index 0000000..4825df6
--- /dev/null
+++ b/core/runit/pause.c
@@ -0,0 +1,20 @@
+#include <unistd.h>
+#include <signal.h>
+
+static void
+nop(int sig)
+{
+}
+
+int
+main()
+{
+ signal(SIGTERM, nop);
+ signal(SIGINT, nop);
+ signal(SIGHUP, SIG_IGN);
+
+ pause();
+
+ return 0;
+}
+