mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 19:30:10 +00:00
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>
This commit is contained in:
parent
28d07380c2
commit
17cef890c9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user