Last change
on this file since 339 was 337, checked in by coas-nagasima, 6 years ago |
ASP3版ECNLを追加
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-csrc;charset=UTF-8
|
File size:
214 bytes
|
Rev | Line | |
---|
[337] | 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.