summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-30 03:57:46 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-30 03:57:46 +0000
commit184bfbba7fa80c4f8c624c14b364d63d7005f161 (patch)
tree3105eda520512c71b11dce4bec84da898ad6f016 /process.c
parent4f66fb14427eb6d1b9ae1b8be3b03e648841e8fb (diff)
Update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/process.c b/process.c
index 8bb43c4494..24b52e7821 100644
--- a/process.c
+++ b/process.c
@@ -3800,7 +3800,10 @@ rb_f_system(int argc, VALUE *argv)
*
* spawn executes specified command and return its pid.
*
- * This method doesn't wait for end of the command.
+ * pid = spawn("tar xf ruby-2.0.0-p195.tar.bz2")
+ * Process.wait pid
+ *
+ * This method is similar to system but it doesn't wait end of the command.
* The parent process should
* use <code>Process.wait</code> to collect
* the termination status of its child or