summaryrefslogtreecommitdiffstats
path: root/sig_pause.c
diff options
context:
space:
mode:
Diffstat (limited to 'sig_pause.c')
-rw-r--r--sig_pause.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/sig_pause.c b/sig_pause.c
new file mode 100644
index 0000000..3416734
--- /dev/null
+++ b/sig_pause.c
@@ -0,0 +1,14 @@
1#include <signal.h>
2#include "sig.h"
3#include "hassgprm.h"
4
5void sig_pause()
6{
7#ifdef HASSIGPROCMASK
8 sigset_t ss;
9 sigemptyset(&ss);
10 sigsuspend(&ss);
11#else
12 sigpause(0);
13#endif
14}