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
- [MUD-Dev] Re: Off topic! But please help, John Bertoglio alexb#internetcds,com, Wed 10 Jun 1998, 18:54 GMT
- [MUD-Dev] Re: Off topic! But please help, Jon A. Lambert jlsysinc#ix,netcom.com, Fri 12 Jun 1998, 00:26 GMT
- <Possible follow-up(s)>
- [MUD-Dev] Re: Off topic! But please help, John Bertoglio alexb#internetcds,com, Sun 14 Jun 1998, 05:09 GMT
- [MUD-Dev] Technical C/C++ coding question, Ben Greear greear#cyberhighway,net, Sun 14 Jun 1998, 05:45 GMT
- [MUD-Dev] Re: Technical C/C++ coding question, Katrina McClelan kitkat#the486,bradley.edu, Sun 14 Jun 1998, 06:52 GMT
- [MUD-Dev] Re: Technical C/C++ coding question, J C Lawrence claw#kanga,nu, Sun 14 Jun 1998, 14:57 GMT
- [MUD-Dev] Re: Technical C/C++ coding question, Jon Leonard jleonard#divcom,slimy.com, Tue 16 Jun 1998, 23:52 GMT
- [MUD-Dev] Re: Technical C/C++ coding question, Katrina McClelan kitkat#the486,bradley.edu, Wed 17 Jun 1998, 00:34 GMT
- [MUD-Dev] Re: Technical C/C++ coding question, Jon Leonard jleonard#divcom,slimy.com, Wed 17 Jun 1998, 01:36 GMT