diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-05-26 18:07:30 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-05-26 18:07:30 +0000 |
commit | b8272edab77fb93498e54b48deec0ee326b00778 (patch) | |
tree | 371e09bf9422469518de8857b03edf74db5a6873 | |
parent | 8942c63cd5f654b8dbb96c50cc749631c8f714a5 (diff) | |
download | busybox-w32-b8272edab77fb93498e54b48deec0ee326b00778.tar.gz busybox-w32-b8272edab77fb93498e54b48deec0ee326b00778.tar.bz2 busybox-w32-b8272edab77fb93498e54b48deec0ee326b00778.zip |
Skip printing "/proc/%d/cmdline" stuff when it is not relevant
git-svn-id: svn://busybox.net/trunk/busybox@6856 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | libbb/procps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/procps.c b/libbb/procps.c index a513f3f7f..7df071869 100644 --- a/libbb/procps.c +++ b/libbb/procps.c | |||
@@ -105,8 +105,8 @@ extern procps_status_t * procps_scan(int save_user_arg0) | |||
105 | 105 | ||
106 | curstatus.rss <<= (PAGE_SHIFT - 10); /* 2**10 = 1kb */ | 106 | curstatus.rss <<= (PAGE_SHIFT - 10); /* 2**10 = 1kb */ |
107 | 107 | ||
108 | sprintf(status, "/proc/%d/cmdline", pid); | ||
109 | if(save_user_arg0) { | 108 | if(save_user_arg0) { |
109 | sprintf(status, "/proc/%d/cmdline", pid); | ||
110 | if((fp = fopen(status, "r")) == NULL) | 110 | if((fp = fopen(status, "r")) == NULL) |
111 | continue; | 111 | continue; |
112 | if((n=fread(buf, 1, sizeof(buf)-1, fp)) > 0) { | 112 | if((n=fread(buf, 1, sizeof(buf)-1, fp)) > 0) { |