summaryrefslogtreecommitdiff
path: root/sig_pause.c
blob: 341673422ff71ee800299c3ea88189333c70e2c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
}