projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pthread_sigmask: Work around Cygwin bug.
[gnulib.git]
/
lib
/
pthread_sigmask.c
diff --git
a/lib/pthread_sigmask.c
b/lib/pthread_sigmask.c
index
b53b15d
..
06ee7fc
100644
(file)
--- a/
lib/pthread_sigmask.c
+++ b/
lib/pthread_sigmask.c
@@
-43,6
+43,10
@@
pthread_sigmask (int how, const sigset_t *new_mask, sigset_t *old_mask)
}
}
# endif
+# if PTHREAD_SIGMASK_FAILS_WITH_ERRNO
+ if (ret == -1)
+ return errno;
+# endif
return ret;
#else
int ret = sigprocmask (how, new_mask, old_mask);