Permalink
Browse files

* 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
  • Loading branch information...
1 parent 562cb0a commit 6d9f7672dd0560478c0031953a3cc8bd5cd05dd9 @kosaki kosaki committed Nov 19, 2012
Showing with 8 additions and 6 deletions.
  1. +6 −0 ChangeLog
  2. +2 −6 signal.c
View
@@ -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
View
@@ -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;
}

0 comments on commit 6d9f767

Please sign in to comment.