From 058b5bce60de0ea4b36e5ad8c7ec5faa0d97b001 Mon Sep 17 00:00:00 2001 From: akr Date: Fri, 9 May 2014 13:57:04 +0000 Subject: [DOC] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- process.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/process.c b/process.c index 7946b170b0..75af4bd073 100644 --- a/process.c +++ b/process.c @@ -3949,9 +3949,10 @@ rb_f_system(int argc, VALUE *argv) * pid = spawn(command, :in=>"/dev/null") # read mode * pid = spawn(command, :out=>"/dev/null") # write mode * pid = spawn(command, :err=>"log") # write mode + * pid = spawn(command, [:out, :err]=>"/dev/null") # write mode * pid = spawn(command, 3=>"/dev/null") # read mode * - * For stdout and stderr, + * For stdout and stderr (and combination of them), * it is opened in write mode. * Otherwise read mode is used. * -- cgit v1.2.3