8000 * signal.c (signal_exec): execute rb_eval_cmd() directly. · documenting-ruby/ruby@29f5911 · GitHub
[go: up one dir, main page]

Skip to content

Commit 29f5911

Browse files
committed
* 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
1 parent ce80820 commit 29f5911

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Wed Sep 24 04:07:07 2008 Koichi Sasada <ko1@atdot.net>
2+
3+
* signal.c (signal_exec): execute rb_eval_cmd() directly.
4+
15
Wed Sep 24 03:08:58 2008 Eric Hodel <drbrain@segment7.net>
26

37
* lib/uri/mailto.rb: fix indentation.

signal.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -565,13 +565,8 @@ sigpipe(int sig)
565565
static void
566566
signal_exec(VALUE cmd, int safe, int sig)
567567
{
568-
VALUE signumary = rb_ary_new3(1, INT2FIX(sig));
569-
570-
if (TYPE(cmd) == T_STRING) {
571-
rb_eval_cmd(cmd, signumary, safe);
572-
return;
573-
}
574-
rb_proc_call(cmd, signumary);
568+
VALUE signum = INT2NUM(sig);
569+
rb_eval_cmd(cmd, rb_ary_new3(1, signum), safe);
575570
}
576571

577572
void

0 commit comments

Comments
 (0)
0