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-08-24 23:03:12 +0400
committerChristopher Faylor <me@cgf.cx>2000-08-24 23:03:12 +0400
commit0ad10c0f96c86c1727559b91efe347484c3c1fa1 (patch)
tree4a1f932fa596fbb8571bb1d4a524a5438f4cf0e6 /winsup/utils/ps.cc
parent199359f062fbe9028de9de4741d365f932672241 (diff)
* Makefile.in: Add dumper.exe target and associated mechanisms for building it.
* dumper.cc: New file. * dumper.h: New file. * module_info.cc: New file. * parse_pe.cc: New file.
Diffstat (limited to 'winsup/utils/ps.cc')
-rw-r--r--winsup/utils/ps.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/utils/ps.cc b/winsup/utils/ps.cc
index 593629c22..362761290 100644
--- a/winsup/utils/ps.cc
+++ b/winsup/utils/ps.cc
@@ -261,9 +261,10 @@ main (int argc, char *argv[])
char pname[MAX_PATH];
if (p->process_state & PID_ZOMBIE)
strcpy (pname, "<defunct>");
- else if (p->progname[0])
+ else if (query != CW_GETPINFO_FULL)
{
char *s;
+ pname[0] = '\0';
cygwin_conv_to_posix_path (p->progname, pname);
s = strchr (pname, '\0') - 4;
if (s > pname && strcasecmp (s, ".exe") == 0)