* include/cygwin/version.h: Bump API_MINOR to accommodate below changes.

* cygwin.din (siginterrupt): New export.
* signal.cc (siginterrupt): New.
This commit is contained in:
Christopher Faylor
2002-11-15 19:04:36 +00:00
parent 4b9ddc7dc9
commit f319cb1ad3
4 changed files with 27 additions and 1 deletions

View File

@@ -407,3 +407,16 @@ pause (void)
{
return handle_sigsuspend (myself->getsigmask ());
}
extern "C" int
siginterrupt (int sig, int flag)
{
struct sigaction act;
(void)sigaction(sig, NULL, &act);
if (flag)
act.sa_flags &= ~SA_RESTART;
else
act.sa_flags |= SA_RESTART;
return sigaction(sig, &act, NULL);
}