Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2000:
[Freeciv-Dev] Re: fix recent misuse of LOG_FATAL
Home

[Freeciv-Dev] Re: fix recent misuse of LOG_FATAL

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: fix recent misuse of LOG_FATAL
From: Jeff Mallatt <jjm@xxxxxxxxxxxx>
Date: Thu, 11 May 2000 14:26:24 -0400

At 2000/05/11 14:14 , David Pfitzner wrote:
>Jeff Mallatt wrote:
>
>> Here's a patch that changes these two back to LOG_FATAL, and makes them so.
>
>> +      exit(1);
>
>In cases like these abort() may be better, so you get a core dump
>which you can examine to try work out what/why it went wrong.

True.  My excuse is that exit() is used about two orders of magnitude more
often in Freeciv than abort().  But, for the ones I change, I'll use
abort() -- here's a new patch.

Attachment: log-fatal-fixes-2.diff
Description: Text document

jjm

[Prev in Thread] Current Thread [Next in Thread]