From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fa528,efd28d93ca7bc987,start X-Google-Attributes: gidfa528,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!newsfeed.cs.wisc.edu!news.cs.wisc.edu!not-for-mail Message-ID: <41375f61$0$1341$80265adb@spool.cs.wisc.edu> From: Peter Keller Subject: setrlimit() problems Newsgroups: comp.unix.tru64 Organization: elsewhere User-Agent: tin/1.6.0-20030714 ("Vatersay") (UNIX) (SunOS/5.8 (sun4u)) Date: 02 Sep 2004 17:58:57 GMT NNTP-Posting-Host: buzzard.cs.wisc.edu X-Trace: 1094147937 spool.cs.wisc.edu 1341 128.105.143.12 Xref: g2news1.google.com comp.unix.tru64:279 Hello, I have a question about setrlimit() and tru64. Suppose I have a machine like this: %uname -a OSF1 V5.1 2650 alpha Now, in a program running as a normal user, I want to up the RLIMIT_CORE size from whatever it is to the maximum allowable to me. Here is a returned structure from a getrlimit(): [rlim_cur = 4294967296, rlim_max = 9223372036854775807] I adjust it to be this: [rlim_cur = 9223372036854775807, rlim_max = 9223372036854775807] and then feed it back into setrlimit(), but I get this error: errno: 1(Not owner) This is very surprising to me. How could this have happened? I wasn't exceeding the maximum, so the kernel should have let me do it. On a different tru64 machine: > uname -a OSF1 V5.1 1885 alpha alpha A program I wrote which does the above works as expected on this different tru64 machine. Any help in solving this would be greatly appreciated. Thank you. -pete