From: Peter Keller <psilord@buzzard.cs.wisc.edu>
Subject: setrlimit() problems
Date: 02 Sep 2004 17:58:57 GMT [thread overview]
Message-ID: <41375f61$0$1341$80265adb@spool.cs.wisc.edu> (raw)
Hello,
I have a question about setrlimit() and tru64.
Suppose I have a machine like this:
%uname -a
OSF1 <hostname> 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 <hostname> 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
next reply other threads:[~2004-09-02 17:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-02 17:58 Peter Keller [this message]
2004-09-02 18:18 ` setrlimit() problems Peter Keller
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox