Project

General

Profile

Backport #5130 ยป thread.c.diff

jeremyevans0 (Jeremy Evans), 08/04/2011 07:21 AM

View differences:

thread.c Wed Aug 3 14:10:12 2011
429 429
    rb_thread_t *join_th;
430 430
    rb_thread_t *main_th;
431 431
    VALUE errinfo = Qnil;
432

  
433
    if (GET_VM()->inhibit_thread_creation) {
434
	thread_debug("not starting thread due to interpreter shutdown: %p\n", (void *)th);
435
	thread_cleanup_func(th, FALSE);
436
	st_delete(th->vm->living_threads, th, NULL);
437
	return 1;
438
    }
439

  
432 440
# ifdef USE_SIGALTSTACK
433 441
    void rb_register_sigaltstack(rb_thread_t *th);
434 442