summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-15 15:02:12 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-15 15:02:12 +0000
commitd9fd1808495f5983ddbc53c33ac6416e987de8f1 (patch)
treefd90bee7107431e897e06902349d482ec488ad26 /process.c
parent280ee0095f2cc0393d6dcced98ef7d60a8e1a984 (diff)
* process.c (pst_success_p): new method Process::Status#success?.
[ruby-dev:23385] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/process.c b/process.c
index dc59ec1..8575b51 100644
--- a/process.c
+++ b/process.c
@@ -3378,6 +3378,7 @@ Init_process()
rb_define_method(rb_cProcStatus, "termsig", pst_wtermsig, 0);
rb_define_method(rb_cProcStatus, "exited?", pst_wifexited, 0);
rb_define_method(rb_cProcStatus, "exitstatus", pst_wexitstatus, 0);
+ rb_define_method(rb_cProcStatus, "success?", pst_success_p, 0);
rb_define_method(rb_cProcStatus, "coredump?", pst_wcoredump, 0);
rb_define_module_function(rb_mProcess, "pid", get_pid, 0);