]> git.pond.sub.org Git - empserver/commit
(play): Increment send_eof instead of setting it, decrement it instead
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 28 Nov 2007 06:34:33 +0000 (06:34 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Wed, 28 Nov 2007 06:34:33 +0000 (06:34 +0000)
commit51846ec38fccd78b30002d0b724bb4aea91a16d4
treefa83088723c7efe46a870c05e162d135e839a156
parent0b058415a1e0dcc53a5956a478afaf45a0b8bf1d
(play): Increment send_eof instead of setting it, decrement it instead
of clearing it.  Fixes a race condition: when we got EOF on input_fd
and a failed doexecute() in the same iteration of the loop, only one
EOF cookie was sent, leaving the client hung.
src/client/play.c