summaryrefslogtreecommitdiffstats
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
parent8266e478d66f551e471e94a25de35db9f8f5e4c0 (diff)
downloadcygnal-6c6f70947d9d16a300a1c1932c85975995665ebd.tar.gz
cygnal-6c6f70947d9d16a300a1c1932c85975995665ebd.tar.bz2
cygnal-6c6f70947d9d16a300a1c1932c85975995665ebd.zip
* pinfo.cc (_pinfo::commune_send): Don't attempt to communicate with a pure
windows process.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/pinfo.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 8948d5429..e854b6fd3 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2003-06-20 Christopher Faylor <cgf@redhat.com>
+
+ * pinfo.cc (_pinfo::commune_send): Don't attempt to communicate with a
+ pure windows process.
+
2003-06-18 Pierre Humblet <pierre.humblet@ieee.org>
* autoload.cc (GetNetworkParams): Add.
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;