aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-07-12 21:37:07 +0000
committerChristopher Faylor <me@cgf.cx>2003-07-12 21:37:07 +0000
commit9e8ac0ae35e04357ae9ee9f4e58bf034d6ad47dc (patch)
treeb29c285695388006d88c677ad1ca2f824ea25472
parenta6674ee61b8308ae40a4feef821a6bf6e442ac6c (diff)
downloadnewlib-9e8ac0ae35e04357ae9ee9f4e58bf034d6ad47dc.zip
newlib-9e8ac0ae35e04357ae9ee9f4e58bf034d6ad47dc.tar.gz
newlib-9e8ac0ae35e04357ae9ee9f4e58bf034d6ad47dc.tar.bz2
* pinfo.cc (_pinfo::commune_send): Fix bounds test so that poll of
communicating pid actually stops eventually.
-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 a5399b1..46260fc 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2003-07-12 Christopher Faylor <cgf@redhat.com>
+
+ * pinfo.cc (_pinfo::commune_send): Fix bounds test so that poll of
+ communicating pid actually stops eventually.
+
2003-07-10 Christopher Faylor <cgf@redhat.com>
* path.cc (get_device_number): Remove special com? consideration.
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc
index 8899def..2e25430 100644
--- a/winsup/cygwin/pinfo.cc
+++ b/winsup/cygwin/pinfo.cc
@@ -363,7 +363,7 @@ _pinfo::commune_send (DWORD code)
/* FIXME: Need something better than an busy loop here */
bool isalive;
- for (int i = 0; (isalive = alive ()) || (i < 65536); i++)
+ for (int i = 0; (isalive = alive ()) && (i < 10000); i++)
if (myself->hello_pid <= 0)
break;
else