When waiting for the file mutex to be acquired also wait for an FD event
commitb915cd016946ffb5798fc1b6aa7663a2f1ffba7b
authorBen Kibbey <bjk@luxsci.net>
Sun, 16 May 2010 20:01:55 +0000 (16 16:01 -0400)
committerBen Kibbey <bjk@luxsci.net>
Sun, 16 May 2010 20:01:55 +0000 (16 16:01 -0400)
tree16581af3dc5286fc652f8ace0748b6685b78a196
parentc9df8f42d2caef037c1d09fd04e0d0d0f8611927
When waiting for the file mutex to be acquired also wait for an FD event
to determine whether the client disconnected while waiting for the lock.
This fixes sending the STATUS_CLIENTS message to other connected clients
rather than having to wait for another connection/disconnection.
src/commands.c
src/lock.h
src/pinentry.c