* setrlimit() problems
@ 2004-09-02 17:58 Peter Keller
2004-09-02 18:18 ` Peter Keller
0 siblings, 1 reply; 2+ messages in thread
From: Peter Keller @ 2004-09-02 17:58 UTC (permalink / 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: setrlimit() problems
2004-09-02 17:58 setrlimit() problems Peter Keller
@ 2004-09-02 18:18 ` Peter Keller
0 siblings, 0 replies; 2+ messages in thread
From: Peter Keller @ 2004-09-02 18:18 UTC (permalink / raw)
Peter Keller <psilord@buzzard.cs.wisc.edu> wrote:
> 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.
I'm sorry, I meant RLIMIT_DATA.
Thanks.
-pete
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-09-02 18:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-02 17:58 setrlimit() problems Peter Keller
2004-09-02 18:18 ` Peter Keller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox