diff options
Diffstat (limited to 'repos/core/busybox/pause.c')
| -rw-r--r-- | repos/core/busybox/pause.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/repos/core/busybox/pause.c b/repos/core/busybox/pause.c new file mode 100644 index 00000000..4825df6b --- /dev/null +++ b/repos/core/busybox/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; +} + |