[Home] [Groups] - Message: [Prev in Group] [Next in Group]

nu.kanga.list.mud-dev

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

[Full Header] [Plain Text]
From: Katrina McClelan <kitkat@the486.bradley.edu>
Newsgroups: nu.kanga.list.mud-dev
Date: Sun, 14 Jun 1998 00:39:06 -0500 (CDT)
References: [1]
Organization: Kanga.Nu
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