diff options
| author | emmett1 <emmett1.2miligrams@protonmail.com> | 2025-04-10 07:26:30 +0800 |
|---|---|---|
| committer | emmett1 <emmett1.2miligrams@protonmail.com> | 2025-04-10 07:26:30 +0800 |
| commit | a64930636462bf24118ca7266f699ce2b696e821 (patch) | |
| tree | 58d116ac5f03aa9e84ece6e4ffa6b489573042a4 /repos/core/busybox/pause.c | |
| parent | ddd8e1a8fab2ac39396282a7c09ddf6eca219613 (diff) | |
| download | alicelinux-a64930636462bf24118ca7266f699ce2b696e821.tar.gz alicelinux-a64930636462bf24118ca7266f699ce2b696e821.zip | |
clang branch updated
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; +} + |