[haiku-commits] haiku: hrev44581 - src/system/kernel

  • From: anevilyak@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 25 Aug 2012 00:32:20 +0200 (CEST)

hrev44581 adds 1 changeset to branch 'master'
old head: 8e80f8cc356e9737689c7f24a04ec2eb9bd8b79a
new head: 6912e7dc034b05bba63db4480f0d94539628d1f8

----------------------------------------------------------------------------

6912e7d: getrlimit with RLIMIT_STACK now returns USER_MAIN_THREAD_STACK_SIZE
  
  Signed-off-by: Rene Gollent <anevilyak@xxxxxxxxx>

                                  [ Edward Robbins <edd.robbins@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev44581
Commit:      6912e7dc034b05bba63db4480f0d94539628d1f8
URL:         http://cgit.haiku-os.org/haiku/commit/?id=6912e7d
Author:      Edward Robbins <edd.robbins@xxxxxxxxx>
Date:        Thu Aug 23 13:01:15 2012 UTC
Committer:   Rene Gollent <anevilyak@xxxxxxxxx>
Commit-Date: Fri Aug 24 22:29:59 2012 UTC

----------------------------------------------------------------------------

1 file changed, 2 insertions(+), 3 deletions(-)
src/system/kernel/thread.cpp |    5 ++---

----------------------------------------------------------------------------

diff --git a/src/system/kernel/thread.cpp b/src/system/kernel/thread.cpp
index 6c95268..6227dd2 100644
--- a/src/system/kernel/thread.cpp
+++ b/src/system/kernel/thread.cpp
@@ -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;
                }
 


Other related posts:

  • » [haiku-commits] haiku: hrev44581 - src/system/kernel - anevilyak