source:
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/signal/siginterrupt.c
Last change on this file was 337, checked in by , 6 years ago | |
---|---|
|
|
File size: 214 bytes |
Line | |
---|---|
1 | #include <signal.h> |
2 | |
3 | int siginterrupt(int sig, int flag) |
4 | { |
5 | struct sigaction sa; |
6 | |
7 | sigaction(sig, 0, &sa); |
8 | if (flag) sa.sa_flags &= ~SA_RESTART; |
9 | else sa.sa_flags |= SA_RESTART; |
10 | |
11 | return sigaction(sig, &sa, 0); |
12 | } |
Note:
See TracBrowser
for help on using the repository browser.