mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
5d73f8f733
commit
d0f38773d1
1 changed files with 1 additions and 0 deletions
|
@ -3501,6 +3501,7 @@ Init_process()
|
||||||
rb_define_method(rb_cProcStatus, "termsig", pst_wtermsig, 0);
|
rb_define_method(rb_cProcStatus, "termsig", pst_wtermsig, 0);
|
||||||
rb_define_method(rb_cProcStatus, "exited?", pst_wifexited, 0);
|
rb_define_method(rb_cProcStatus, "exited?", pst_wifexited, 0);
|
||||||
rb_define_method(rb_cProcStatus, "exitstatus", pst_wexitstatus, 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_method(rb_cProcStatus, "coredump?", pst_wcoredump, 0);
|
||||||
|
|
||||||
rb_define_module_function(rb_mProcess, "pid", get_pid, 0);
|
rb_define_module_function(rb_mProcess, "pid", get_pid, 0);
|
||||||
|
|
Loading…
Reference in a new issue