* external.cc (fillout_pinfo): Match windows pid, as well as cygwin pid when
passed in pid. Don't prematurely break when searching for a pid. * thread.h (_winsup_t): Eliminate unneeded field.
This commit is contained in:
parent
ee57685985
commit
00a7496150
|
@ -1,3 +1,10 @@
|
||||||
|
Sat Mar 17 21:48:03 2001 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
|
* external.cc (fillout_pinfo): Match windows pid, as well as cygwin pid
|
||||||
|
when passed in pid. Don't prematurely break when searching for a pid.
|
||||||
|
|
||||||
|
* thread.h (_winsup_t): Eliminate unneeded field.
|
||||||
|
|
||||||
Sat Mar 17 20:46:00 2001 Corinna Vinschen <corinna@vinschen.de>
|
Sat Mar 17 20:46:00 2001 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* net.cc (get_95_ifconf): Use strcasematch instead of strcasecmp.
|
* net.cc (get_95_ifconf): Use strcasematch instead of strcasecmp.
|
||||||
|
|
|
@ -53,8 +53,9 @@ fillout_pinfo (pid_t pid, int winpid)
|
||||||
ep.dwProcessId = cygwin_pid (thispid);
|
ep.dwProcessId = cygwin_pid (thispid);
|
||||||
ep.process_state = PID_IN_USE;
|
ep.process_state = PID_IN_USE;
|
||||||
ep.ctty = -1;
|
ep.ctty = -1;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
else if (nextpid || p->pid == pid)
|
else if (nextpid || p->pid == pid || (winpid && thispid == (DWORD) pid))
|
||||||
{
|
{
|
||||||
ep.ctty = tty_attached (p) ? p->ctty : -1;
|
ep.ctty = tty_attached (p) ? p->ctty : -1;
|
||||||
ep.pid = p->pid;
|
ep.pid = p->pid;
|
||||||
|
@ -74,9 +75,9 @@ fillout_pinfo (pid_t pid, int winpid)
|
||||||
ep.strace_file = 0;
|
ep.strace_file = 0;
|
||||||
|
|
||||||
ep.process_state = p->process_state;
|
ep.process_state = p->process_state;
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!ep.pid)
|
if (!ep.pid)
|
||||||
{
|
{
|
||||||
|
|
|
@ -61,7 +61,6 @@ struct _winsup_t
|
||||||
|
|
||||||
/* console.cc */
|
/* console.cc */
|
||||||
unsigned _rarg;
|
unsigned _rarg;
|
||||||
char _my_title_buf[TITLESIZE + 1];
|
|
||||||
|
|
||||||
/* dlfcn.cc */
|
/* dlfcn.cc */
|
||||||
int _dl_error;
|
int _dl_error;
|
||||||
|
|
Loading…
Reference in New Issue