diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-05-21 04:22:54 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-05-21 04:22:54 +0000 |
| commit | 5799c2bfbf7dbf34bc21b45152be717069d3a592 (patch) | |
| tree | cda1cb5c64756a7c3530c1ab33e37c168934c146 /process.c | |
| parent | a5bda2baec20bb52b1e30e67e783bc4f0ff00c33 (diff) | |
| download | ruby-5799c2bfbf7dbf34bc21b45152be717069d3a592.tar.gz ruby-5799c2bfbf7dbf34bc21b45152be717069d3a592.tar.xz ruby-5799c2bfbf7dbf34bc21b45152be717069d3a592.zip | |
* bignum.c (rb_big2str): t should be protected from GC.
* process.c (rb_proc_times): need not to check retrun value from
times(2).
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
| -rw-r--r-- | process.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1285,7 +1285,7 @@ rb_proc_times(obj) #endif /* HZ */ struct tms buf; - if (times(&buf) == -1) rb_sys_fail(0); + times(&buf); return rb_struct_new(S_Tms, rb_float_new((double)buf.tms_utime / HZ), rb_float_new((double)buf.tms_stime / HZ), |
