getrlimit with RLIMIT_STACK now returns USER_MAIN_THREAD_STACK_SIZE

Signed-off-by: Rene Gollent <[email protected]>
This commit is contained in:
Edward Robbins
2012-08-24 18:29:59 -04:00
committed by Rene Gollent
parent 8e80f8cc35
commit 6912e7dc03
+2 -3
View File
@@ -1284,9 +1284,8 @@ common_getrlimit(int resource, struct rlimit * rlp)
case RLIMIT_STACK:
{
Thread *thread = thread_get_current_thread();
rlp->rlim_cur = thread->user_stack_size;
rlp->rlim_max = thread->user_stack_size;
rlp->rlim_cur = USER_MAIN_THREAD_STACK_SIZE;
rlp->rlim_max = USER_MAIN_THREAD_STACK_SIZE;
return B_OK;
}