diff options
author | Christopher Faylor <me@cgf.cx> | 2000-05-18 18:32:05 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-05-18 18:32:05 +0000 |
commit | 2a6a56c227b8649b3f3f3f6cd1648305e82d3aab (patch) | |
tree | 5b83bf7ef5d58eac8652019f02f7deb545e7c054 /winsup/cygwin/select.cc | |
parent | 6c7395bfce9491415d6672bc97a7f6e70fd07fd9 (diff) | |
download | cygnal-2a6a56c227b8649b3f3f3f6cd1648305e82d3aab.tar.gz cygnal-2a6a56c227b8649b3f3f3f6cd1648305e82d3aab.tar.bz2 cygnal-2a6a56c227b8649b3f3f3f6cd1648305e82d3aab.zip |
* select.cc (thread_pipe): Add paranoid check to ensure thread termination.
* external.cc: Eliminate obsolete include.
* getopt.c (getopt_long): Fix compiler warning.
* shared.h: Moved PID_ definitions to include/sys/cygwin so that they can be
used by external programs.
* include/sys/cygwin.h: Move external definitions here. Include sys/resource.h
to avoid having to do this everywhere.
Diffstat (limited to 'winsup/cygwin/select.cc')
-rw-r--r-- | winsup/cygwin/select.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc index 8d4b34c94..08fba1256 100644 --- a/winsup/cygwin/select.cc +++ b/winsup/cygwin/select.cc @@ -505,6 +505,12 @@ thread_pipe (void *arg) goto out; } } + /* Paranoid check */ + if (pi->stop_thread_pipe) + { + select_printf ("stopping from outer loop"); + break; + } if (gotone) break; Sleep (10); |