aboutsummaryrefslogtreecommitdiffstats
path: root/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'process.c')
-rw-r--r--process.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/process.c b/process.c
index 5acb2af7f4..62520fc318 100644
--- a/process.c
+++ b/process.c
@@ -3884,6 +3884,9 @@ rb_f_system(int argc, VALUE *argv)
*
* :close_others is true by default for spawn and IO.popen.
*
+ * Note that fds which close-on-exec flag is already set are closed
+ * regardless of :close_others option.
+ *
* So IO.pipe and spawn can be used as IO.popen.
*
* # similar to r = IO.popen(command)