MUD-Dev
mailing list archive

[ Other Periods  | Other mailing lists  | Search  ]

Date:  [ Previous  | Next  ]      Thread:  [ Previous  | Next  ]      Index:  [ Author  | Date  | Thread  ]

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





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





[ Other Periods  | Other mailing lists  | Search  ]