Menu

#247 panic() unsafe as signal handler

open
nobody
None
3
2006-06-07
2006-06-07
No

Signal handler panic() calls functions not safe for
signal handlers.

It also flushes game data to disk. This can overwrite
good state on disk with bad or inconsistent state.

It is not obvious how to best fix this. Most data
updates write through to disk. If all did, the (risky)
flushing in case of a crash would be superflous.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB