aboutsummaryrefslogtreecommitdiffhomepage
path: root/proc.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-06-21 19:54:30 +1000
committerGravatar axel <axel@liljencrantz.se>2006-06-21 19:54:30 +1000
commit3ddd5e59810d0d1642a061a6342811a8be7a5251 (patch)
treedb8ed435f7a584c3c8643445c17c95b4f7c04734 /proc.c
parentb016438c08877cb3b24808d260397a8aa8fe49ce (diff)
Check exit status of close and fclose in a few extra places
darcs-hash:20060621095430-ac50b-52afcee91b856f706d6df6bcf2e3a6bc7d746e40.gz
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/proc.c b/proc.c
index 94fe8dc6..5c60c5b2 100644
--- a/proc.c
+++ b/proc.c
@@ -695,6 +695,10 @@ unsigned long proc_get_jiffies( process_t *p )
{
return 0;
}
+
+ /*
+ Don't need to check exit status of fclose on read-only streams
+ */
fclose( f );
return utime+stime+cutime+cstime;