getrlimit with RLIMIT_STACK now returns USER_MAIN_THREAD_STACK_SIZE
Signed-off-by: Rene Gollent <[email protected]>
This commit is contained in:
committed by
Rene Gollent
parent
8e80f8cc35
commit
6912e7dc03
@@ -1284,9 +1284,8 @@ common_getrlimit(int resource, struct rlimit * rlp)
|
|||||||
|
|
||||||
case RLIMIT_STACK:
|
case RLIMIT_STACK:
|
||||||
{
|
{
|
||||||
Thread *thread = thread_get_current_thread();
|
rlp->rlim_cur = USER_MAIN_THREAD_STACK_SIZE;
|
||||||
rlp->rlim_cur = thread->user_stack_size;
|
rlp->rlim_max = USER_MAIN_THREAD_STACK_SIZE;
|
||||||
rlp->rlim_max = thread->user_stack_size;
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user