From owner-freebsd-questions Wed Jul 10 9:59:51 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 75E1037B400 for ; Wed, 10 Jul 2002 09:59:49 -0700 (PDT) Received: from ra.sai.msu.su (ra.sai.msu.su [158.250.29.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D67843E65 for ; Wed, 10 Jul 2002 09:59:48 -0700 (PDT) (envelope-from er@sai.msu.su) Received: (from er@localhost) by ra.sai.msu.su (8.9.3/8.9.3) id TAA26885 for freebsd-questions@FreeBSD.ORG; Wed, 10 Jul 2002 19:59:47 +0300 (GMT) Date: Wed, 10 Jul 2002 19:59:47 +0300 (GMT) From: "E.Rodichev" Message-Id: <200207101659.TAA26885@ra.sai.msu.su> To: freebsd-questions@FreeBSD.ORG Subject: setrlimit RLIMIT_STACK problem Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I need to increase maximum stack size above 64MB. The system 4.6-STABLE FreeBSD is configured properly, with :stacksize=unlimited:\ in /etc/login.conf. If I try to call setrlimit(RLIMIT_STACK, &rlm) with rlm.rlim_cu = rlm.rlim_max = size; (with size > 64MB) as a normal user, I get the return value -1 (an error). And it looks correct. But if I call the same routine as root, then I get the normal return from setrlimit (==0), but stacksize remains unchanged! I.e. getrlimit reports 64MB, and nothing else. Any ideas? Is it a bug, or I missed something? Thank you, E.R. _________________________________________________________________________ Evgeny Rodichev Sternberg Astronomical Institute System/Net Admin Moscow State University email: er@sai.msu.su Phone: 007 (095) 939 2383 Fax: 007 (095) 932 8841 http://www.sai.msu.su/~er To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message