]> git.pond.sub.org Git - empserver/commit
Fix Windows client's stdin read thread's error handling
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 25 Apr 2009 07:43:48 +0000 (09:43 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 25 Apr 2009 08:16:27 +0000 (10:16 +0200)
commitd0cf7a3119451f5ef75413a1c46765266766c2c1
tree4281cfff4df4fb5d4733ba4d323e66dbcf8b6135
parentcf4cb6c9073b5e7736198cc6e3ab1c8801313aa4
Fix Windows client's stdin read thread's error handling

stdin_read_thread() zeroed bounce_status on failure, effectifely
treating it like EOF.  Fix by setting to -1.

It treated main thread termination like failure, and set bounce_error
to a bogus value.  Can't happen, because the program terminates when
the main thread terminates, and the only user of bounce_error is the
main thread anyway.  Regardless, handle the case by terminating,
because that's more obviously correct.

Broken in commit f082ef9f, v4.3.11.
src/client/play.c