summaryrefslogblamecommitdiff
path: root/src/signal/sigpause.c
blob: 363d2fec27f9cc720cbbef0236061b4bd0c2159a (plain) (tree)
1
2
3
4
5
6
7
8
9
                   



                      

                                 

                                 
#include <signal.h>

int sigpause(int sig)
{
	sigset_t mask;
	sigprocmask(0, 0, &mask);
	sigdelset(&mask, sig);
	return sigsuspend(&mask);
}