mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* process.c (rb_f_exec): get rid of SEGV when exec failed for command
in single string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
56e2c5243f
commit
1eafe8b157
2 changed files with 4 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
|||
Thu Feb 26 02:19:11 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Thu Feb 26 02:35:10 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* process.c (rb_f_exec): get rid of SEGV when exec failed.
|
||||
* process.c (rb_f_exec): get rid of SEGV when exec failed for command
|
||||
in single string.
|
||||
|
||||
Wed Feb 25 21:17:33 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
|
|
|
@ -1232,7 +1232,7 @@ rb_f_exec(argc, argv)
|
|||
e.argv = argv;
|
||||
e.prog = prog ? RSTRING(prog)->ptr : 0;
|
||||
rb_exec(&e);
|
||||
rb_sys_fail(e.prog);
|
||||
rb_sys_fail(prog ? e.prog : RSTRING(argv[0])->ptr);
|
||||
return Qnil; /* dummy */
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue