* ps.cc (main): Always print a cygwin process using cygwin paths.
This commit is contained in:
parent
2d5862dee6
commit
4bb85e7f67
|
@ -1,3 +1,7 @@
|
||||||
|
Thu Aug 24 18:02:35 2000 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
|
* ps.cc (main): Always print a cygwin process using cygwin paths.
|
||||||
|
|
||||||
2000-08-24 Egor Duda <deo@logos-m.ru>
|
2000-08-24 Egor Duda <deo@logos-m.ru>
|
||||||
|
|
||||||
* Makefile.in: Add dumper.exe target and associated mechanisms for building it.
|
* Makefile.in: Add dumper.exe target and associated mechanisms for building it.
|
||||||
|
|
|
@ -261,7 +261,7 @@ main (int argc, char *argv[])
|
||||||
char pname[MAX_PATH];
|
char pname[MAX_PATH];
|
||||||
if (p->process_state & PID_ZOMBIE)
|
if (p->process_state & PID_ZOMBIE)
|
||||||
strcpy (pname, "<defunct>");
|
strcpy (pname, "<defunct>");
|
||||||
else if (query != CW_GETPINFO_FULL)
|
else if (p->ppid)
|
||||||
{
|
{
|
||||||
char *s;
|
char *s;
|
||||||
pname[0] = '\0';
|
pname[0] = '\0';
|
||||||
|
@ -270,7 +270,7 @@ main (int argc, char *argv[])
|
||||||
if (s > pname && strcasecmp (s, ".exe") == 0)
|
if (s > pname && strcasecmp (s, ".exe") == 0)
|
||||||
*s = '\0';
|
*s = '\0';
|
||||||
}
|
}
|
||||||
else
|
else if (query == CW_GETPINFO_FULL)
|
||||||
{
|
{
|
||||||
HANDLE h = OpenProcess (PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, p->dwProcessId);
|
HANDLE h = OpenProcess (PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, p->dwProcessId);
|
||||||
if (!h)
|
if (!h)
|
||||||
|
|
Loading…
Reference in New Issue