Don't send status messages to clients that are exiting. Fixes a hang
commitf358135cfc72cc087458d50392ca53fe8f71903b
authorBen Kibbey <bjk@luxsci.net>
Thu, 29 Jan 2009 03:23:53 +0000 (28 22:23 -0500)
committerBen Kibbey <bjk@luxsci.net>
Thu, 29 Jan 2009 03:23:53 +0000 (28 22:23 -0500)
treeca575a47ed9dd32377852447c16ff72cc4d3d51b
parent55cbf105faac8ba03d61fbbcd0b6d391982134a3
Don't send status messages to clients that are exiting. Fixes a hang
with client_msg_thread() and clear_cache() which calls
send_status_all(). The msg thread has already been terminated. It only
affected new files that weren't SAVE'd before exit. But it's better to
add a variable for later modifications that might have the same problem.
src/commands.c
src/common.h
src/pwmd.c