* 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.
This commit is contained in:
Christopher Faylor
2000-10-09 03:31:10 +00:00
parent 164a681ca5
commit aaf0dee260
4 changed files with 14 additions and 13 deletions

View File

@@ -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);