From ed6a2bd29f649369beb1b7935cf2625c60581c04 Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 21 May 2001 04:22:54 +0000 Subject: * 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 --- process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'process.c') diff --git a/process.c b/process.c index 0051d358b1..e4b7c8f03b 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), -- cgit v1.2.3