projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64191c3
)
Skip printing "/proc/%d/cmdline" stuff when it is not relevant
author
Eric Andersen
<andersen@codepoet.org>
Mon, 26 May 2003 18:07:30 +0000
(18:07 -0000)
committer
Eric Andersen
<andersen@codepoet.org>
Mon, 26 May 2003 18:07:30 +0000
(18:07 -0000)
libbb/procps.c
patch
|
blob
|
history
diff --git
a/libbb/procps.c
b/libbb/procps.c
index a513f3f7f0a8145e781bc07a32942388aae26412..7df0718692a368b2f2a169e02964dbdafccdc86b 100644
(file)
--- a/
libbb/procps.c
+++ b/
libbb/procps.c
@@
-105,8
+105,8
@@
extern procps_status_t * procps_scan(int save_user_arg0)
curstatus.rss <<= (PAGE_SHIFT - 10); /* 2**10 = 1kb */
- sprintf(status, "/proc/%d/cmdline", pid);
if(save_user_arg0) {
+ sprintf(status, "/proc/%d/cmdline", pid);
if((fp = fopen(status, "r")) == NULL)
continue;
if((n=fread(buf, 1, sizeof(buf)-1, fp)) > 0) {