home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.admin:4837 comp.unix.questions:10638 comp.unix.shell:3762
- Path: sparky!uunet!dtix!darwin.sura.net!ukma!kherron
- From: kherron@ms.uky.edu (Kenneth Herron)
- Newsgroups: comp.unix.admin,comp.unix.questions,comp.unix.shell
- Subject: Re: How to prevent a large core-dump
- Message-ID: <1992Sep2.94728.26099@ms.uky.edu>
- Date: 2 Sep 92 13:47:28 GMT
- References: <1992Aug25.173056.13401@utwente.nl>
- <1992Sep1.150813.1695@impmh.uucp> <1992Sep2.050208.9673@sq.sq.com>
- Distribution: na
- Organization: University Of Kentucky, Dept. of Math Sciences
- Lines: 14
-
- msb@sq.sq.com (Mark Brader) writes:
-
- >> echo > core
- >> chmod 0 core
- >> Then the program will not produce a core, since the file "core" already
- >> exists, but is unwritable (see signal(2)).
-
- >Fine for most purposes, probably including the original query, but wait
- >until the day that it's a setuid-root program whose core dumps you want
- >to prevent!
- > mkdir core
-
- You won't get a core dump if the executable is stripped. Am I the only
- one who's noticed this?
-