diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-15 15:02:12 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-15 15:02:12 +0000 |
| commit | 996862fcdf40ef7b43262d697077b5c96b75275d (patch) | |
| tree | fd90bee7107431e897e06902349d482ec488ad26 /process.c | |
| parent | 0ab59b8a6259846fdae982024b23106f5510d3f7 (diff) | |
| download | ruby-996862fcdf40ef7b43262d697077b5c96b75275d.tar.gz ruby-996862fcdf40ef7b43262d697077b5c96b75275d.tar.xz ruby-996862fcdf40ef7b43262d697077b5c96b75275d.zip | |
* process.c (pst_success_p): new method Process::Status#success?.
[ruby-dev:23385]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
| -rw-r--r-- | process.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |
