diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-29 19:28:25 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-05-29 19:28:25 +0000 |
| commit | 390d25f0f5f86bb92e1f1e39be5d0dcdd6487b2c (patch) | |
| tree | 23cd7cc557131261c63669856ee3b5cbddb3479a | |
| parent | d6836ad5e1fd857af2348e4c8aba684ed16ee9c8 (diff) | |
* eval.c (thread_timer): timer thread should not receive any signals.
submitted by Sylvain Joyeux. [ruby-core:08546]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | eval.c | 5 |
2 files changed, 10 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Wed May 30 04:29:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * eval.c (thread_timer): timer thread should not receive any + signals. submitted by Sylvain Joyeux. [ruby-core:08546] + Wed May 30 04:18:37 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> * eval.c (rb_eval_cmd): just return if no exceptions. @@ -11756,6 +11756,11 @@ static void* thread_timer(dummy) void *dummy; { + sigset_t all_signals; + + sigfillset(&all_signals); + pthread_sigmask(SIG_BLOCK, &all_signals, 0); + for (;;) { #ifdef HAVE_NANOSLEEP struct timespec req, rem; |
