home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.admin:4731 comp.unix.questions:10464 comp.unix.shell:3680
- Path: sparky!uunet!comp.vuw.ac.nz!waikato.ac.nz!aukuni.ac.nz!ecmtwhk
- Newsgroups: comp.unix.admin,comp.unix.questions,comp.unix.shell
- Subject: Re: How to prevent a large core-dump
- Message-ID: <1992Aug28.095120.25797@ccu1.aukuni.ac.nz>
- From: ecmtwhk@ccu1.aukuni.ac.nz (Thomas Koenig)
- Date: Fri, 28 Aug 1992 09:51:20 GMT
- References: <1992Aug25.173056.13401@utwente.nl>
- Organization: University of Auckland, New Zealand.
- Lines: 18
-
- soos@math.utwente.nl (Adwin Soos) wants
-
- >some suggestions on how
- >to prevent that a large core-dump will be made.
-
- #include <sys/resource.h>
- [...]
- struct rlimit rlp;
-
- getrlimit(RLIMIT_CORE,&rlp);
- rlp.rlim_cur = 0;
- setrlimit (RLIMIT_CORE,&rlp);
-
- limits the size of the core to 0 bytes (at least on an SGI running IRIX).
- --
- Thomas Koenig, ecmtwhk@ccu1.aukuni.ac.nz, ib09@rz.uni-karlsruhe.de
- The joy of engineering is to find a straight line on a double logarithmic
- diagram.
-