[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]
> (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
|
|