summaryrefslogtreecommitdiff
path: root/ucspi-tcp-0.88/sig_pause.c
blob: 3dcc7b660ba643f2fda3b76a9fdddc32cadd263a (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(void)
{
#ifdef HASSIGPROCMASK
  sigset_t ss;
  sigemptyset(&ss);
  sigsuspend(&ss);
#else
  sigpause(0);
#endif
}