diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2001-11-08 20:49:52 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2001-11-08 20:49:52 +0300 |
commit | 80a429d20a345f222a4151d8f162fd8542244bb5 (patch) | |
tree | 26cdb5481b1fc093d2aaff3d598398c9687915c1 /winsup/cygwin/signal.cc | |
parent | 036fd823dcf4cf161304a894258477d175b1c3f0 (diff) |
* select.cc: Set errno using set_sig_errno() throughout.
* signal.cc (signal): Always set SA_RESTART flag.
* syscalls.cc (_read): Revert previous patch.
Diffstat (limited to 'winsup/cygwin/signal.cc')
-rw-r--r-- | winsup/cygwin/signal.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/winsup/cygwin/signal.cc b/winsup/cygwin/signal.cc index 70671b884..652348302 100644 --- a/winsup/cygwin/signal.cc +++ b/winsup/cygwin/signal.cc @@ -56,6 +56,9 @@ signal (int sig, _sig_func_ptr func) prev = myself->getsig (sig).sa_handler; myself->getsig (sig).sa_handler = func; myself->getsig (sig).sa_mask = 0; + /* SA_RESTART is set to maintain BSD compatible signal behaviour by default. + This is also compatible to the behaviour of signal(2) in Linux. */ + myself->getsig (sig).sa_flags |= SA_RESTART; set_sigcatchers (prev, func); syscall_printf ("%p = signal (%d, %p)", prev, sig, func); |