From c4a7b4e09e2b6da42ccd6dbb77fad51308f4d2c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Thu, 10 Apr 2008 19:27:26 +0000 Subject: [PATCH] Report the stack size from getrlimit(), we might want to get fancier later but that should be enough. Tcl will want that. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24893 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/thread.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/system/kernel/thread.cpp b/src/system/kernel/thread.cpp index 0ada2035b0..818a8a5334 100644 --- a/src/system/kernel/thread.cpp +++ b/src/system/kernel/thread.cpp @@ -2380,6 +2380,11 @@ getrlimit(int resource, struct rlimit * rlp) case RLIMIT_NOVMON: return vfs_getrlimit(resource, rlp); + case RLIMIT_STACK: + rlp->rlim_cur = USER_STACK_SIZE; + rlp->rlim_max = USER_STACK_SIZE; + return 0; + default: return EINVAL; }