]> git.pond.sub.org Git - empserver/commit
(shutdwn): Take exclusive update lock for shutdown. This makes the
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 21 Jan 2007 12:04:16 +0000 (12:04 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 21 Jan 2007 12:04:16 +0000 (12:04 +0000)
commitd8fbfda100d8151c472210a73705469e1985247b
tree744c21242acc0b0b496a08d844d5dcb974151091
parente8f74e0f7ef9087e3a8dbc0cd18e3d9b88e57ac4
(shutdwn): Take exclusive update lock for shutdown.  This makes the
shutdown block until all aborted commands terminated and gave up their
lock.  Remove the cheesy one second wait for commands to finish.  This
also locks out further commands to execute during shutdown.  However,
it also makes it impossible to kill hung player threads here.  Rely on
player_kill_idle() for that.  That doesn't quite work right now,
because it leaves a stale shared lock behind, which blocks shutdown.
src/server/main.c