]> git.pond.sub.org Git - empserver/commit
Don't log out player when update aborts a command under Windows
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 5 Jul 2009 22:56:06 +0000 (18:56 -0400)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 30 Nov 2009 18:43:47 +0000 (19:43 +0100)
commit2bfe7a1198ae20e8c58a7ef7fb5a9d16e0ddbaf8
treeb6c322ded09cb7f559db464929d33c79ae596f7f
parentee01ac1912240ebde1baaa8abd6a556679f35f25
Don't log out player when update aborts a command under Windows

pthread.c's empth_select() returned 1 instead of 0 when empth_wakeup()
interrupted select().  This made io_input() attempt to read input,
which failed with WSAEWOULDBLOCK.  The failure then got propagated all
the way up, and the player got logged out.  Fix by returning 0 in that
case.
src/lib/empthread/ntthread.c