зеркало из https://github.com/github/ruby.git
* signal.c (signal_exec): suppress "warning: variable 'signum'
might be clobbered by 'longjmp' or 'vfork'" warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
7087153156
Коммит
458796d4f1
|
@ -1,3 +1,8 @@
|
|||
Mon Nov 26 18:19:47 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* signal.c (signal_exec): suppress "warning: variable 'signum'
|
||||
might be clobbered by 'longjmp' or 'vfork'" warning.
|
||||
|
||||
Mon Nov 26 18:15:47 2012 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* benchmark/driver.rb: accept multiple `-e'.
|
||||
|
|
2
signal.c
2
signal.c
|
@ -623,7 +623,6 @@ sigsegv(int sig SIGINFO_ARG)
|
|||
static void
|
||||
signal_exec(VALUE cmd, int safe, int sig)
|
||||
{
|
||||
VALUE signum = INT2NUM(sig);
|
||||
rb_thread_t *cur_th = GET_THREAD();
|
||||
int old_in_trap = cur_th->in_trap;
|
||||
int state;
|
||||
|
@ -631,6 +630,7 @@ signal_exec(VALUE cmd, int safe, int sig)
|
|||
cur_th->in_trap = 1;
|
||||
TH_PUSH_TAG(cur_th);
|
||||
if ((state = EXEC_TAG()) == 0) {
|
||||
VALUE signum = INT2NUM(sig);
|
||||
rb_eval_cmd(cmd, rb_ary_new3(1, signum), safe);
|
||||
}
|
||||
TH_POP_TAG();
|
||||
|
|
Загрузка…
Ссылка в новой задаче