Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-musl-libc: Commit

external/musl/libc


Commit MetaInfo

Revision7829f42a2c8944555439380498ab8b924d0f2070 (tree)
Time2019-07-14 00:22:37
AuthorJames Y Knight <jyknight@goog...>
CommiterRich Felker

Log Message

fix sigaltstack to ignore ss_size with SS_DISABLE, per POSIX

Change Summary

Incremental Difference

--- a/src/signal/sigaltstack.c
+++ b/src/signal/sigaltstack.c
@@ -5,7 +5,7 @@
55 int sigaltstack(const stack_t *restrict ss, stack_t *restrict old)
66 {
77 if (ss) {
8- if (ss->ss_size < MINSIGSTKSZ) {
8+ if (!(ss->ss_flags & SS_DISABLE) && ss->ss_size < MINSIGSTKSZ) {
99 errno = ENOMEM;
1010 return -1;
1111 }
Show on old repository browser