Last change
on this file since 445 was 444, checked in by coas-nagasima, 4 years ago |
muslのソースコードを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csrc;charset=UTF-8
|
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.