Don't close the client file descriptor in remove_connection().
commit4f8a8b864518d4c658e7c627976f2bec0d7fe36e
authorBen Kibbey <bjk@luxsci.net>
Mon, 7 Jan 2008 02:35:56 +0000 (6 21:35 -0500)
committerBen Kibbey <bjk@luxsci.net>
Mon, 7 Jan 2008 02:35:56 +0000 (6 21:35 -0500)
tree78886394168bdb1b4a07c417d82de282a1783c64
parent33ad2264899a00cb8faf1c39bbda79c093a7c1e6
Don't close the client file descriptor in remove_connection().
assuan_deinit_server() will do it. This fixes IPC read/write errors
and a race condition with cleanup_thread().

unlink() socketpath in serverloop() when waiting for clients to
disconnect to prevent new client from connecting.

Use g_snprintf() and not snprintf() for portability.
src/commands.c
src/pinentry.c
src/pwmd.c