summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-12 00:15:27 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-12 00:15:27 +0000
commit3f0fd715f4e8fc0dcdc6da2558f4549b448cf431 (patch)
tree672915c353cfa9441b5173ec5099b6a643adba5c /process.c
parent7bda092ee86c0f4615e0c68773cfe894bdfbe966 (diff)
update document.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29231 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/process.c b/process.c
index ad884ea07e..55b83b10b8 100644
--- a/process.c
+++ b/process.c
@@ -313,6 +313,10 @@ pst_message(VALUE str, rb_pid_t pid, int status)
* stat.to_s -> string
*
* Show pid and exit status as a string.
+ *
+ * system("false")
+ * p $?.to_s #=> "pid 12766 exit 1"
+ *
*/
static VALUE
@@ -336,6 +340,10 @@ pst_to_s(VALUE st)
* stat.inspect -> string
*
* Override the inspection method.
+ *
+ * system("false")
+ * p $?.inspect #=> "#<Process::Status: pid 12861 exit 1>"
+ *
*/
static VALUE