Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!harpo!seismo!hao!hplabs!sri-unix!lwa@mit-csr From: lwa%mit-csr@sri-unix.UUCP Newsgroups: net.unix-wizards Subject: Re: Disabling core dumps Message-ID: <12983@sri-arpa.UUCP> Date: Wed, 26-Oct-83 10:37:00 EST Article-I.D.: sri-arpa.12983 Posted: Wed Oct 26 10:37:00 1983 Date-Received: Mon, 31-Oct-83 05:12:57 EST Lines: 24 Well, Ron's suggestion will work, but it seems a little inelegant (in particular, if you forget to remove the 'core' file later, it will prevent future programs from dumping core). A slightly more elegant solution is to add a signal handler for the signal you're getting (SIGSEG, I think?) which just causes the process to exit. Like this: /* at the beginning of main() */ extern int segflt(); signal(SIGSEG, segflt); . . . segflt() { exit(1); } -Larry Allen -------