mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
* signal.c (sigexit): call rb_thread_signal_exit() instead of
rb_exit(). [ruby-dev:26347] * eval.c (rb_thread_signal_exit): a new function to exit on main thread. * eval.c (rb_thread_switch): exit status should be retrieved from ruby_errinfo. * eval.c (rb_f_exit): ensure exit(0) should call exit(EXIT_SUCCESS). * missing/mkdir.c: remove. [ruby-core:05177] * lib/delegate.rb (SimpleDelegator::__setobj__): need check for recursive delegation. [ruby-core:04940] * misc/ruby-mode.el (ruby-expr-beg): fix looking point drift. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
aeaad8feab
commit
f87aa95e94
9 changed files with 70 additions and 116 deletions
3
signal.c
3
signal.c
|
@ -33,6 +33,7 @@ static struct signals {
|
|||
char *signm;
|
||||
int signo;
|
||||
} siglist [] = {
|
||||
{"EXIT", 0},
|
||||
#ifdef SIGHUP
|
||||
{"HUP", SIGHUP},
|
||||
#endif
|
||||
|
@ -508,7 +509,7 @@ static RETSIGTYPE
|
|||
sigexit(sig)
|
||||
int sig;
|
||||
{
|
||||
rb_exit(0);
|
||||
rb_thread_signal_exit();
|
||||
}
|
||||
|
||||
static VALUE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue