lkml.org 
[lkml]   [1999]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] /proc/*/statm empty -- breaks top
Changes in -pre8 fs/proc/array.c create empty /proc/*/statm files (e.g.,
for kswapd and kflushd, among others). -pre7 instead produced files
with all values 0. The empty files break top from procps-1.2.9. This
seems undesirable so close to 2.2.0.

The small attached patch produces zero-valued files instead of empty
files once again.

--Lee Hetherington
--- linux-2.2.0-pre8/fs/proc/array.c Thu Jan 14 13:49:22 1999
+++ linux/fs/proc/array.c Wed Jan 20 10:06:20 1999
@@ -1085,8 +1085,7 @@
vma = vma->vm_next;
}
release_mm(mm);
- } else
- return 0;
+ }
return sprintf(buffer,"%d %d %d %d %d %d %d\n",
size, resident, share, trs, lrs, drs, dt);
}
\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.160 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site