Complete.Org: Mailing Lists: Archives: freeciv-dev: May 2001:
[Freeciv-Dev] Re: Patch for civserver: save game on SIGPWR, SIGTERMor S
Home

[Freeciv-Dev] Re: Patch for civserver: save game on SIGPWR, SIGTERMor S

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: "Eric R. Smith" <ersmith@xxxxxxxxxxxxxx>
Cc: Mika Korhonen <mikak@xxxxxxxxxxxx>, freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Patch for civserver: save game on SIGPWR, SIGTERMor SIGHUP
From: Andreas Kemnade <akemnade@xxxxxxxxxxx>
Date: Sat, 5 May 2001 14:21:59 +0200 (CEST)

 > (2) is definitely a problem. It falls into "implementation defined
 > behaviour"
 > in the Posix standard, I think, and could mean that the process would
 > be killed and a corrupted save file left. A better patch would probably
 > use the "sigaction" function to install the signal handlers rather than
 > "signal". "sigaction" can block other signals during the handler.
 > However, I'm not sure how portable this would be, particularly to
 > Windows,
 > and as you say it's probably a very rare problem.
 > 
That's not portable.
sigaction seems not to exist on windows and on amigaos (without
additional unix emulation layer, tested with gcc -noixemul).

Greetings
Andreas Kemnade


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