getrlimit with RLIMIT_STACK now returns USER_MAIN_THREAD_STACK_SIZE

Signed-off-by: Rene Gollent <anevilyak@gmail.com>
This commit is contained in:
Edward Robbins 2012-08-23 13:01:15 +00:00 committed by Rene Gollent
parent 8e80f8cc35
commit 6912e7dc03
1 changed files with 2 additions and 3 deletions

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;
}