[1358] in Coldmud discussion meeting
Re: [COLD] Panic behaviour.. create core image?
daemon@ATHENA.MIT.EDU (Thu Sep 25 15:13:07 1997
)
From: Foxen/Revar <foxen@best.com>
To: brandon@roguetrader.com (Brandon Gillespie)
Date: Thu, 25 Sep 1997 12:00:46 -0700 (PDT)
Cc: coldstuff@cold.org
In-Reply-To: <Pine.BSF.3.96.970925100924.10426A-100000@roguetrader.com> from "Brandon Gillespie" at Sep 25, 97 10:10:25 am
>
> Just curious, I'm considering changing the behaviour of panic, so after it
> safely makes a dump of the database it sends SEGV to itself, to create a
> core image dump--which can later be analized.
>
> Any comments in this regard? If people dont like it they can just set
> coredumpsize to zero..
>
> -Brandon
>
>
You might want to use the more standard abort() function, that raises a
SIGABRT signal and closes all open file descriptors. Otherwise, the
effects are pretty much the same, including dumping core. Most of the
TinyMUD derived servers do it this way.
- Foxen/Revar