summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--process.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/process.c b/process.c
index 7946b17..75af4bd 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.
*