1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/* Public domain. */ #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 }