mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* signal.c (ruby_signal): don't set SA_RESTART.
[ruby-dev:26276] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
cd8d93d0cd
commit
73c5a99b50
2 changed files with 5 additions and 8 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun Jun 5 10:23:52 2005 Tanaka Akira <akr@m17n.org>
|
||||
|
||||
* signal.c (ruby_signal): don't set SA_RESTART.
|
||||
[ruby-dev:26276]
|
||||
|
||||
Sat Jun 4 14:55:18 2005 Tanaka Akira <akr@m17n.org>
|
||||
|
||||
* test/dbm/test_dbm.rb: merged from ext/dbm/testdbm.rb.
|
||||
|
|
8
signal.c
8
signal.c
|
@ -340,14 +340,6 @@ ruby_signal(signum, handler)
|
|||
sigact.sa_handler = handler;
|
||||
sigemptyset(&sigact.sa_mask);
|
||||
sigact.sa_flags = 0;
|
||||
#if defined(SA_RESTART)
|
||||
/* All other signals but VTALRM shall restart restartable syscall
|
||||
VTALRM will cause EINTR to syscall if interrupted.
|
||||
*/
|
||||
if (signum != SIGVTALRM) {
|
||||
sigact.sa_flags |= SA_RESTART; /* SVR4, 4.3+BSD */
|
||||
}
|
||||
#endif
|
||||
#ifdef SA_NOCLDWAIT
|
||||
if (signum == SIGCHLD && handler == SIG_IGN)
|
||||
sigact.sa_flags |= SA_NOCLDWAIT;
|
||||
|
|
Loading…
Add table
Reference in a new issue