diff options
author | Christopher Faylor <me@cgf.cx> | 2000-10-09 03:31:10 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-10-09 03:31:10 +0000 |
commit | aaf0dee2609f1cdb0fbe181a4f00e0c600e78a9c (patch) | |
tree | 4af57f4254a988850a95751d5b50f79502aa7c1b /winsup/utils/ps.cc | |
parent | 164a681ca55419ec2cc7c9ad45f720f4a79cada1 (diff) | |
download | cygnal-aaf0dee2609f1cdb0fbe181a4f00e0c600e78a9c.tar.gz cygnal-aaf0dee2609f1cdb0fbe181a4f00e0c600e78a9c.tar.bz2 cygnal-aaf0dee2609f1cdb0fbe181a4f00e0c600e78a9c.zip |
* 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.cc | 6 |
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); |