• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <signal.h>
2 #include <unsupported_api.h>
3 
siginterrupt(int sig,int flag)4 int siginterrupt(int sig, int flag)
5 {
6 	struct sigaction sa;
7 	unsupported_api(__FUNCTION__);
8 	sigaction(sig, 0, &sa);
9 	if (flag) sa.sa_flags &= ~SA_RESTART;
10 	else sa.sa_flags |= SA_RESTART;
11 
12 	return sigaction(sig, &sa, 0);
13 }
14