Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-10-09 07:31:10 +0400
committerChristopher Faylor <me@cgf.cx>2000-10-09 07:31:10 +0400
commitaaf0dee2609f1cdb0fbe181a4f00e0c600e78a9c (patch)
tree4af57f4254a988850a95751d5b50f79502aa7c1b /winsup/utils/ps.cc
parent164a681ca55419ec2cc7c9ad45f720f4a79cada1 (diff)
* ps.cc (main): Change order of reporting slightly so that windows pids are
more obvious. * strace.cc (add_child): Just add child's pid directly. (remove_child): No need to close the child process pid since ContinueDebugEvent does that automatically. (proc_child): Ditto for child thread.
Diffstat (limited to 'winsup/utils/ps.cc')
-rw-r--r--winsup/utils/ps.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/utils/ps.cc b/winsup/utils/ps.cc
index 413defea3..b9c391ffa 100644
--- a/winsup/utils/ps.cc
+++ b/winsup/utils/ps.cc
@@ -175,8 +175,8 @@ main (int argc, char *argv[])
const char *dfmt = "%5d%4d%10s %s\n";
const char *ftitle = " UID PID PPID TTY STIME COMMAND\n";
const char *ffmt = "%8.8s%6d%6d%4d%10s %s\n";
- const char *ltitle = " PID PPID PGID WINPID UID TTY STIME COMMAND\n";
- const char *lfmt = "%c %5d %5d %5d %8u %4d %3d %8s %s\n";
+ const char *ltitle = " PID PPID PGID WINPID TTY UID STIME COMMAND\n";
+ const char *lfmt = "%c %5d %5d %5d %8u %3d %4d %8s %s\n";
char ch;
aflag = lflag = fflag = sflag = 0;
@@ -305,7 +305,7 @@ main (int argc, char *argv[])
printf (ffmt, uname, p->pid, p->ppid, p->ctty, start_time (p), pname);
else if (lflag)
printf (lfmt, status, p->pid, p->ppid, p->pgid,
- p->dwProcessId, p->uid, p->ctty, start_time (p), pname);
+ p->dwProcessId, p->ctty, p->uid, start_time (p), pname);
}
(void) cygwin_internal (CW_UNLOCK_PINFO);