fix(util/stackinfo): bug on Fedora
Signed-off-by: Leonardo de Moura <leonardo@nod1-2008.corp.crtest.com>
This commit is contained in:
parent
e3403492a5
commit
fd2a04e9ac
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ size_t get_stack_size(int main) {
|
|||
if (getrlimit(RLIMIT_STACK, &curr) != 0) {
|
||||
throw_get_stack_size_failed();
|
||||
}
|
||||
return curr.rlim_max;
|
||||
return curr.rlim_cur;
|
||||
} else {
|
||||
#if defined(LEAN_MULTI_THREAD)
|
||||
pthread_attr_t attr;
|
||||
|
|
Loading…
Reference in a new issue