From d0f38773d1c38d0a2f8449d66d5041dc64c6b025 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 15 Apr 2004 15:02:12 +0000 Subject: [PATCH] * process.c (pst_success_p): new method Process::Status#success?. [ruby-dev:23385] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- process.c | 1 + 1 file changed, 1 insertion(+) diff --git a/process.c b/process.c index 4c15e67a2a..705583f651 100644 --- a/process.c +++ b/process.c @@ -3501,6 +3501,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);