mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* signal.c (signal_exec): execute rb_eval_cmd() directly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ce80820c0c
commit
29f5911cf5
2 changed files with 6 additions and 7 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Wed Sep 24 04:07:07 2008 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
|
* signal.c (signal_exec): execute rb_eval_cmd() directly.
|
||||||
|
|
||||||
Wed Sep 24 03:08:58 2008 Eric Hodel <drbrain@segment7.net>
|
Wed Sep 24 03:08:58 2008 Eric Hodel <drbrain@segment7.net>
|
||||||
|
|
||||||
* lib/uri/mailto.rb: fix indentation.
|
* lib/uri/mailto.rb: fix indentation.
|
||||||
|
|
9
signal.c
9
signal.c
|
@ -565,13 +565,8 @@ sigpipe(int sig)
|
||||||
static void
|
static void
|
||||||
signal_exec(VALUE cmd, int safe, int sig)
|
signal_exec(VALUE cmd, int safe, int sig)
|
||||||
{
|
{
|
||||||
VALUE signumary = rb_ary_new3(1, INT2FIX(sig));
|
VALUE signum = INT2NUM(sig);
|
||||||
|
rb_eval_cmd(cmd, rb_ary_new3(1, signum), safe);
|
||||||
if (TYPE(cmd) == T_STRING) {
|
|
||||||
rb_eval_cmd(cmd, signumary, safe);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
rb_proc_call(cmd, signumary);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue