in reply to PERL coredump limit

Erm, what do you think BSD::Resource's setrlimit() routine's for?

setrlimit( BSD::Resource::RLIMIT_CORE(), 0, 0 ) or warn "Can't set core file size limit to 0: $!\n";

Replies are listed 'Best First'.
Re^2: PERL coredump limit
by hv (Prior) on Aug 03, 2004 at 23:47 UTC

    Note that you may well find that you can only increase the core file size limit if you're running as root.

    Hugo

      Right, a non-root user can only lower the hard limit (rlim_max) and/or set the soft (rlim_cur) anywhere between 0 and the current hard limit. But that's going to be the case whether you use BSD::Resource or the shell's ulimit builtin.