summaryrefslogtreecommitdiff
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 @@
+#include <signal.h>
+#include "sig.h"
+#include "hassgprm.h"
+
+void sig_pause()
+{
+#ifdef HASSIGPROCMASK
+ sigset_t ss;
+ sigemptyset(&ss);
+ sigsuspend(&ss);
+#else
+ sigpause(0);
+#endif
+}