* 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/trunk@12409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
87e215b55d
commit
682a52e61c
@ -1,3 +1,9 @@
|
|||||||
|
Wed May 30 04:29:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* thread_pthread.ci (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>
|
Wed May 30 04:18:37 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* eval.c (rb_eval_cmd): just return if no exceptions.
|
* eval.c (rb_eval_cmd): just return if no exceptions.
|
||||||
|
@ -462,6 +462,11 @@ static void timer_thread_function(void);
|
|||||||
static void *
|
static void *
|
||||||
thread_timer(void *dummy)
|
thread_timer(void *dummy)
|
||||||
{
|
{
|
||||||
|
sigset_t all_signals;
|
||||||
|
|
||||||
|
sigfillset(&all_signals);
|
||||||
|
pthread_sigmask(SIG_BLOCK, &all_signals, 0);
|
||||||
|
|
||||||
while (system_working) {
|
while (system_working) {
|
||||||
#ifdef HAVE_NANOSLEEP
|
#ifdef HAVE_NANOSLEEP
|
||||||
struct timespec req, rem;
|
struct timespec req, rem;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user