diff options
author | Christopher Faylor <me@cgf.cx> | 2003-07-13 01:37:07 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-07-13 01:37:07 +0400 |
commit | 9e8ac0ae35e04357ae9ee9f4e58bf034d6ad47dc (patch) | |
tree | b29c285695388006d88c677ad1ca2f824ea25472 /winsup/cygwin/pinfo.cc | |
parent | a6674ee61b8308ae40a4feef821a6bf6e442ac6c (diff) |
* pinfo.cc (_pinfo::commune_send): Fix bounds test so that poll of
communicating pid actually stops eventually.
Diffstat (limited to 'winsup/cygwin/pinfo.cc')
-rw-r--r-- | winsup/cygwin/pinfo.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index 8899defb3..2e254303e 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 |