summaryrefslogtreecommitdiffstats
path: root/winsup
diff options
context:
space:
mode:
Diffstat (limited to 'winsup')
-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;