summaryrefslogtreecommitdiff
path: root/ps.c
diff options
context:
space:
mode:
authorErik Andersen2000-04-25 23:24:55 +0000
committerErik Andersen2000-04-25 23:24:55 +0000
commit227a59b05d6df9b4be5990915646249d6f548822 (patch)
tree36b29c39d4740003b9b77c098a634bac8a6dcb45 /ps.c
parentf93a95de6960b1d1977a934aafd3e9a8b8ea1765 (diff)
downloadbusybox-227a59b05d6df9b4be5990915646249d6f548822.zip
busybox-227a59b05d6df9b4be5990915646249d6f548822.tar.gz
Several more updates
-Erik
Diffstat (limited to 'ps.c')
-rw-r--r--ps.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ps.c b/ps.c
index 8d59700..f8cf33b 100644
--- a/ps.c
+++ b/ps.c
@@ -163,13 +163,13 @@ extern int ps_main(int argc, char **argv)
if (*groupName == '\0')
sprintf(groupName, "%d", p.rgid);
- len = fprintf(stdout, "%5d %-8s %-8s %c ", p.pid, uidName, groupName,
- p.state);
sprintf(path, "/proc/%s/cmdline", entry->d_name);
file = fopen(path, "r");
if (file == NULL)
- fatalError("Can't open %s: %s\n", path, strerror(errno));
+ continue;
i = 0;
+ len = fprintf(stdout, "%5d %-8s %-8s %c ", p.pid, uidName, groupName,
+ p.state);
while (((c = getc(file)) != EOF) && (i < (terminal_width-len))) {
i++;
if (c == '\0')