diff options
Diffstat (limited to 'procps/top.c')
-rw-r--r-- | procps/top.c | 4 |
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)); |