[NTLUG:Discuss] Setting coredumpsize in X
Steve Baker
sjbaker1 at airmail.net
Wed Oct 13 19:04:02 CDT 1999
Kevin Brannen wrote:
>
> This is normally a function of the shell; even if that means the one
> that is the parent of your window manager. Since you're using csh as a
> login shell, try putting your "limit" command in /etc/csh.login, or if
> you prefer, you're own ~/.login. If that doesn't do it, I don't know.
I wonder if the problem is that X runs suid-root - and maybe root gets
to ignore the limits you set with the limit command?
Either way though, a "soft" limit presumably only applies to processes
started by the shell that ran the limit command and it's descendants.
A "hard" limit can only be set up by 'root'.
Hence you'd need to set soft limits up in your login script or
manually before doing a 'startx'. Of course if you login via X
rather than on a dumb terminal then 'startx', you are probably
screwed anyway.
'ulimit' in bash has slightly different rules from csh's 'limit'
command. It says you can't RAISE an existing hard limit (even
if you are root according to the manual).
--
Steve Baker http://web2.airmail.net/sjbaker1
sjbaker1 at airmail.net (home) http://www.woodsoup.org/~sbaker
sjbaker at hti.com (work)
More information about the Discuss
mailing list