зеркало из https://github.com/github/ruby.git
* 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:
Родитель
56e2c5243f
Коммит
1eafe8b157
|
@ -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 */
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче