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
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/thread.h')
-rw-r--r--winsup/cygwin/thread.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/thread.h b/winsup/cygwin/thread.h
index 62bd1b959..bea8e2aa3 100644
--- a/winsup/cygwin/thread.h
+++ b/winsup/cygwin/thread.h
@@ -21,6 +21,7 @@ details. */
#include <limits.h>
#include "security.h"
#include <errno.h>
+#include "cygerrno.h"
enum cw_sig_wait
{
@@ -641,6 +642,7 @@ public:
}
static void terminate ()
{
+ save_errno save;
semaphores.for_each (&semaphore::_terminate);
}