* signal.c (install_sighandler): added comments why we need
rb_disable_interrupt(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
75df3aae0f
commit
562cb0ae59
@ -1,3 +1,8 @@
|
|||||||
|
Tue Nov 20 09:36:55 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||||
|
|
||||||
|
* signal.c (install_sighandler): added comments why we need
|
||||||
|
rb_disable_interrupt().
|
||||||
|
|
||||||
Tue Nov 20 09:31:33 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
Tue Nov 20 09:31:33 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||||
|
|
||||||
* signal.c (rb_disable_interrupt, rb_enable_interrupt): removed
|
* signal.c (rb_disable_interrupt, rb_enable_interrupt): removed
|
||||||
|
2
signal.c
2
signal.c
@ -986,8 +986,10 @@ install_sighandler(int signum, sighandler_t handler)
|
|||||||
{
|
{
|
||||||
sighandler_t old;
|
sighandler_t old;
|
||||||
|
|
||||||
|
/* At this time, there is no subthread. Then sigmask guarantee atomics. */
|
||||||
rb_disable_interrupt();
|
rb_disable_interrupt();
|
||||||
old = ruby_signal(signum, handler);
|
old = ruby_signal(signum, handler);
|
||||||
|
/* signal handler should be inherited during exec. */
|
||||||
if (old != SIG_DFL) {
|
if (old != SIG_DFL) {
|
||||||
ruby_signal(signum, old);
|
ruby_signal(signum, old);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user