Re: [ OFF-TOPIC ] Core Dumps

From: Erwin S. Andreasen (erwin@PIP.DKNET.DK)
Date: 12/28/97


On Sat, 27 Dec 1997, David Klasinc wrote:


> Ok, this will probably be the weirdest question on the list...
>  How to force program to dump a core and continue working? Something like:

if (!fork())
        abort();

You might want to check that fork() does not return an error though and in
that case well, sleep for a while and try again or maybe just continue.


See also: man fork, man abort.

 =============================================================================
Erwin Andreasen   Herlev, Denmark <erwin@pip.dknet.dk>  UNIX System Programmer
<URL:http://www.abandoned.org/drylock/>     <*>         (not speaking for) DDE
 =============================================================================


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST