зеркало из https://github.com/github/ruby.git
* signal.c (rb_get_next_signal): removed pointless signal
disabling. pthread_sigmask() only changes current thread mask. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
562cb0ae59
Коммит
6d9f7672dd
|
@ -1,3 +1,9 @@
|
|||
Tue Nov 20 09:48:34 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* signal.c (rb_get_next_signal): removed pointless signal
|
||||
disabling. pthread_sigmask() only changes current thread
|
||||
mask.
|
||||
|
||||
Tue Nov 20 09:36:55 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* signal.c (install_sighandler): added comments why we need
|
||||
|
|
8
signal.c
8
signal.c
|
@ -562,12 +562,8 @@ rb_get_next_signal(void)
|
|||
if (signal_buff.size != 0) {
|
||||
for (i=1; i<RUBY_NSIG; i++) {
|
||||
if (signal_buff.cnt[i] > 0) {
|
||||
rb_disable_interrupt();
|
||||
{
|
||||
ATOMIC_DEC(signal_buff.cnt[i]);
|
||||
ATOMIC_DEC(signal_buff.size);
|
||||
}
|
||||
rb_enable_interrupt();
|
||||
ATOMIC_DEC(signal_buff.cnt[i]);
|
||||
ATOMIC_DEC(signal_buff.size);
|
||||
sig = i;
|
||||
break;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче