aboutsummaryrefslogtreecommitdiff
path: root/procps/top.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-07-03 10:07:04 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-07-03 10:07:04 +0000
commit058ac4543d7d9b3acec3dd992df07d460484742e (patch)
treee8f993dffc34380fbcc54cc858c81da594bdb95b /procps/top.c
parent6b9670aadfe6d16099d630f89862239bb0c59e7c (diff)
downloadbusybox-w32-058ac4543d7d9b3acec3dd992df07d460484742e.tar.gz
busybox-w32-058ac4543d7d9b3acec3dd992df07d460484742e.tar.bz2
busybox-w32-058ac4543d7d9b3acec3dd992df07d460484742e.zip
Patch from Russell Coker:
I've attached my latest SE Linux patch for busybox against the latest CVS version of busybox. git-svn-id: svn://busybox.net/trunk/busybox@7031 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'procps/top.c')
-rw-r--r--procps/top.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/procps/top.c b/procps/top.c
index b70a42a72..2e1bd3286 100644
--- a/procps/top.c
+++ b/procps/top.c
@@ -501,7 +501,11 @@ int top_main(int argc, char **argv)
501 /* read process IDs & status for all the processes */ 501 /* read process IDs & status for all the processes */
502 procps_status_t * p; 502 procps_status_t * p;
503 503
504#ifdef CONFIG_SELINUX
505 while ((p = procps_scan(0, 0, NULL) ) != 0) {
506#else
504 while ((p = procps_scan(0)) != 0) { 507 while ((p = procps_scan(0)) != 0) {
508#endif
505 int n = ntop; 509 int n = ntop;
506 510
507 top = xrealloc(top, (++ntop)*sizeof(procps_status_t)); 511 top = xrealloc(top, (++ntop)*sizeof(procps_status_t));