aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/pinfo.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-06-21 00:08:02 +0000
committerChristopher Faylor <me@cgf.cx>2003-06-21 00:08:02 +0000
commit6c6f70947d9d16a300a1c1932c85975995665ebd (patch)
treeec0f0caf8010cf605db11e34fd639ed231e11d62 /winsup/cygwin/pinfo.cc
parent8266e478d66f551e471e94a25de35db9f8f5e4c0 (diff)
downloadnewlib-6c6f70947d9d16a300a1c1932c85975995665ebd.zip
newlib-6c6f70947d9d16a300a1c1932c85975995665ebd.tar.gz
newlib-6c6f70947d9d16a300a1c1932c85975995665ebd.tar.bz2
* 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 6f1c3e9..625f022 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;