projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c225e6c
)
fix sigaltstack to ignore ss_size with SS_DISABLE, per POSIX
author
James Y Knight
<jyknight@google.com>
Thu, 11 Jul 2019 15:48:08 +0000
(11:48 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Sat, 13 Jul 2019 15:22:37 +0000
(11:22 -0400)
src/signal/sigaltstack.c
patch
|
blob
|
history
diff --git
a/src/signal/sigaltstack.c
b/src/signal/sigaltstack.c
index cfa3f5c19d0de03384ff3f1a3b884149626db07b..d3a6e8215f83c3d0a8038a6d0eee2bc228b104e5 100644
(file)
--- a/
src/signal/sigaltstack.c
+++ b/
src/signal/sigaltstack.c
@@
-5,7
+5,7
@@
int sigaltstack(const stack_t *restrict ss, stack_t *restrict old)
{
if (ss) {
- if (ss->ss_size < MINSIGSTKSZ) {
+ if (
!(ss->ss_flags & SS_DISABLE) &&
ss->ss_size < MINSIGSTKSZ) {
errno = ENOMEM;
return -1;
}