summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-05-21 04:22:54 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2001-05-21 04:22:54 +0000
commited6a2bd29f649369beb1b7935cf2625c60581c04 (patch)
treecda1cb5c64756a7c3530c1ab33e37c168934c146 /process.c
parent4a14c9ceb901697ab4c0a6b3730337ec4ef1133c (diff)
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@1438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/process.c b/process.c
index 0051d35..e4b7c8f 100644
--- a/process.c
+++ b/process.c
@@ -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),