about summary refs log tree commit diff
path: root/support
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2021-07-10 10:56:50 -0700
committerH.J. Lu <hjl.tools@gmail.com>2021-07-11 07:57:31 -0700
commit17cef890c95a71671ec80b1daac88aef7ca46a90 (patch)
tree87ccfabf7f414684b403df11ae57a10b8a9a6f82 /support
parent28d07380c2ae5786e242be336ccc1c9e3111f3fa (diff)
downloadglibc-17cef890c95a71671ec80b1daac88aef7ca46a90.tar.gz
glibc-17cef890c95a71671ec80b1daac88aef7ca46a90.tar.xz
glibc-17cef890c95a71671ec80b1daac88aef7ca46a90.zip
support: Replace _SC_MINSIGSTKSZ with _SC_SIGSTKSZ
Replace _SC_MINSIGSTKSZ with _SC_SIGSTKSZ since sysconf (_SC_MINSIGSTKSZ)
returns the minimum number of bytes of free stack space required in order
to guarantee successful, non-nested handling of a single signal whose
handler is an empty function while sysconf (_SC_SIGSTKSZ) returns the
suggested minimum number of bytes of stack space required for a signal
stack.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'support')
-rw-r--r--support/support_stack_alloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/support/support_stack_alloc.c b/support/support_stack_alloc.c
index b05ae08968..62eee84573 100644
--- a/support/support_stack_alloc.c
+++ b/support/support_stack_alloc.c
@@ -39,10 +39,10 @@ support_stack_alloc (size_t size)
   if (pagesize == -1)
     FAIL_EXIT1 ("sysconf (_SC_PAGESIZE): %m\n");
 
-  /* Always supply at least sysconf (_SC_MINSIGSTKSZ) space; passing 0
+  /* Always supply at least sysconf (_SC_SIGSTKSZ) space; passing 0
      as size means only that much space.  No matter what the number is,
      round it up to a whole number of pages.  */
-  size_t stacksize = roundup (size + sysconf (_SC_MINSIGSTKSZ),
+  size_t stacksize = roundup (size + sysconf (_SC_SIGSTKSZ),
 			      pagesize);
 
   /* The guard bands need to be large enough to intercept offset