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>2003-06-21 04:08:02 +0400
committerChristopher Faylor <me@cgf.cx>2003-06-21 04:08:02 +0400
commit6c6f70947d9d16a300a1c1932c85975995665ebd (patch)
treeec0f0caf8010cf605db11e34fd639ed231e11d62 /winsup/cygwin/pinfo.cc
parent8266e478d66f551e471e94a25de35db9f8f5e4c0 (diff)
* pinfo.cc (_pinfo::commune_send): Don't attempt to communicate with a pure
windows process.
Diffstat (limited to 'winsup/cygwin/pinfo.cc')
-rw-r--r--winsup/cygwin/pinfo.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc
index 6f1c3e953..625f0224f 100644
--- a/winsup/cygwin/pinfo.cc
+++ b/winsup/cygwin/pinfo.cc
@@ -331,7 +331,7 @@ _pinfo::commune_send (DWORD code)
res.s = NULL;
res.n = 0;
- if (!pid || !this)
+ if (!pid || !this || (dwProcessId != (DWORD) pid && !pinfo (myself->dwProcessId)))
{
set_errno (ESRCH);
goto err;