diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-12-25 06:29:27 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-12-25 06:29:27 +0000 |
commit | eea16da9f859d0e876fd331066a230a44b9a6a50 (patch) | |
tree | f2ec985d66f5d99a203277cf0961d960228d441e /process.c | |
parent | d98cd107dbb710dd17f8f8446f746e8d602c74ec (diff) | |
download | ruby-eea16da9f859d0e876fd331066a230a44b9a6a50.tar.gz ruby-eea16da9f859d0e876fd331066a230a44b9a6a50.tar.xz ruby-eea16da9f859d0e876fd331066a230a44b9a6a50.zip |
001225
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r-- | process.c | 20 |
1 files changed, 0 insertions, 20 deletions
@@ -531,21 +531,6 @@ rb_f_exec(argc, argv) } static VALUE -fork_rescue(data, errinfo) - VALUE data, errinfo; -{ - int status = 1; - - if (rb_obj_is_kind_of(errinfo, rb_eSystemExit)) { - VALUE st = rb_iv_get(errinfo, "status"); - - status = NUM2INT(st); - } - ruby_finalize(); - _exit(status); -} - -static VALUE rb_f_fork(obj) VALUE obj; { @@ -560,15 +545,10 @@ rb_f_fork(obj) #endif rb_thread_atfork(); if (rb_block_given_p()) { -#if 0 - rb_rescue2(rb_yield, Qnil, fork_rescue, 0, rb_eException, 0); - _exit(0); -#else int status; rb_protect(rb_yield, Qnil, &status); ruby_stop(status); -#endif } return Qnil; |