Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-11-29 03:31:37 +0300
committerChristopher Faylor <me@cgf.cx>2003-11-29 03:31:37 +0300
commitb50fe8212fd825120f5c2bbf3d4f3afb684d27ad (patch)
tree42ec0d08fff5cee1e95eef25df9b0043f66e41f4 /winsup
parent62e070d72ead4e5376e1cc43bf5340b4c2888fc5 (diff)
* sigproc.cc (no_signals_available): Fix so that non-zero exit state is a true
condition rather than errnoneously only checking other states when exist_state was zero.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog6
-rw-r--r--winsup/cygwin/pinfo.h4
-rw-r--r--winsup/cygwin/sigproc.cc8
3 files changed, 11 insertions, 7 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index bc0a15c94..100a7d23c 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,11 @@
2003-11-28 Christopher Faylor <cgf@redhat.com>
+ * sigproc.cc (no_signals_available): Fix so that non-zero exit state is
+ a true condition rather than errnoneously only checking other states
+ when exist_state was zero.
+
+2003-11-28 Christopher Faylor <cgf@redhat.com>
+
* pinfo.h (_pinfo::getthread2signal): Remove obsolete function.
* cygtls.h (_threadinfo): Define tid more precisely.
(_threadinfo::operator HANDLE): Define.
diff --git a/winsup/cygwin/pinfo.h b/winsup/cygwin/pinfo.h
index 02313492a..a8ca9f92f 100644
--- a/winsup/cygwin/pinfo.h
+++ b/winsup/cygwin/pinfo.h
@@ -10,10 +10,6 @@ details. */
#ifndef _PINFO_H
#define _PINFO_H
-/* Signal constants (have to define them here, unfortunately) */
-
-#define PSIZE 63
-
#include <sys/resource.h>
#include "thread.h"
diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc
index d3d80753c..b4a9ee18f 100644
--- a/winsup/cygwin/sigproc.cc
+++ b/winsup/cygwin/sigproc.cc
@@ -36,12 +36,14 @@ details. */
/*
* Convenience defines
*/
-#define WSSC 60000 // Wait for signal completion
-#define WPSP 40000 // Wait for proc_subproc mutex
+#define WSSC 60000 // Wait for signal completion
+#define WPSP 40000 // Wait for proc_subproc mutex
+
+#define PSIZE 63 // Number of processes
#define wake_wait_subproc() SetEvent (events[0])
-#define no_signals_available() (!hwait_sig || !sig_loop_wait && !exit_state)
+#define no_signals_available() (!hwait_sig || !sig_loop_wait || exit_state)
#define NZOMBIES 256