[MUD-Dev] Re: Technical C/C++ coding question

Katrina McClelan kitkat at the486.bradley.edu
Sun Jun 14 00:39:06 CEST 1998


On Sat, 13 Jun 1998, Ben Greear wrote:

> Is there a way to (easily) do that in c++ as well?  Can I make it
> dump a core file and yet still keep runing?
> 

	if(!fork()) {
		/* child copy starts here */
		kill(getpid(),SIGSEGV); /* this'll dump core */
		sleep(10); /* make sure it stops here */
		/* dead by here */
	}

	/* parent continues unaware */

-Kat





More information about the mud-dev-archive mailing list