diff options
author | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-24 14:11:25 +0000 |
---|---|---|
committer | k0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-24 14:11:25 +0000 |
commit | fb29cffab05cb5446c1e6cd68035c39143b02763 (patch) | |
tree | 1419c170d120a0ba906168f66054b73dbec7ea46 /io.c | |
parent | 7184e03eb259b31a1e2fda200e63924ec4a041b3 (diff) | |
download | ruby-fb29cffab05cb5446c1e6cd68035c39143b02763.tar.gz |
process.c: add :exception option to Kernel.#system
to raise error when it fails.
[Feature 14386] [GH-1795]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -6633,7 +6633,7 @@ pipe_open_s(VALUE prog, const char *modestr, int fmode, VALUE execarg_obj = Qnil; if (!is_popen_fork(prog)) - execarg_obj = rb_execarg_new(argc, argv, TRUE); + execarg_obj = rb_execarg_new(argc, argv, TRUE, FALSE); return pipe_open(execarg_obj, modestr, fmode, convconfig); } @@ -6766,14 +6766,14 @@ rb_io_s_popen(int argc, VALUE *argv, VALUE klass) rb_raise(rb_eArgError, "too many arguments"); } #endif - execarg_obj = rb_execarg_new((int)len, RARRAY_CONST_PTR(tmp), FALSE); + execarg_obj = rb_execarg_new((int)len, RARRAY_CONST_PTR(tmp), FALSE, FALSE); RB_GC_GUARD(tmp); } else { SafeStringValue(pname); execarg_obj = Qnil; if (!is_popen_fork(pname)) - execarg_obj = rb_execarg_new(1, &pname, TRUE); + execarg_obj = rb_execarg_new(1, &pname, TRUE, FALSE); } if (!NIL_P(execarg_obj)) { if (!NIL_P(opt)) |