summaryrefslogtreecommitdiff
path: root/rubysig.h
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-10-21 10:23:03 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-10-21 10:23:03 +0000
commit1a61008f18e651ef8848813a34cdebd6d8fd5eba (patch)
tree77b499cb6261feefd9e82c51079f85c9093ea642 /rubysig.h
parent5b014a7427ef87fecb54c368cf3fe1efabb03f03 (diff)
* rubysig.h (CHECK_INTS): fixed typo. (I believe bit-or is improper)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rubysig.h')
-rw-r--r--rubysig.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/rubysig.h b/rubysig.h
index ac5519c13a1..bce1c4f2aae 100644
--- a/rubysig.h
+++ b/rubysig.h
@@ -82,7 +82,7 @@ void rb_thread_schedule(void);
#if defined(HAVE_SETITIMER) || defined(_THREAD_SAFE)
RUBY_EXTERN int rb_thread_pending;
# define CHECK_INTS do {\
- if (!(rb_prohibit_interrupt | rb_thread_critical)) {\
+ if (!(rb_prohibit_interrupt || rb_thread_critical)) {\
if (rb_thread_pending) rb_thread_schedule();\
if (rb_trap_pending) rb_trap_exec();\
}\
@@ -92,10 +92,10 @@ RUBY_EXTERN int rb_thread_pending;
RUBY_EXTERN int rb_thread_tick;
#define THREAD_TICK 500
#define CHECK_INTS do {\
- if (!(rb_prohibit_interrupt | rb_thread_critical)) {\
+ if (!(rb_prohibit_interrupt || rb_thread_critical)) {\
if (rb_thread_tick-- <= 0) {\
- rb_thread_tick = THREAD_TICK;
- rb_thread_schedule();
+ rb_thread_tick = THREAD_TICK;\
+ rb_thread_schedule();\
}\
}\
if (rb_trap_pending) rb_trap_exec();\