1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

agent,dirmngr: Tiny restructuring.

* agent/gpg-agent.c (handle_connections): Add a comment.
* dirmngr/dirmngr.c (main): Move assuan_sock_close of the listening
socket to ...
(handle_connections): here.  Add a comment why we keep the
listening socket open during a shutdown.

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2016-11-29 20:35:10 +01:00
parent 854adc8ae1
commit aa6ab9e0bc
No known key found for this signature in database
GPG key ID: E3FDFF218E45B72B
2 changed files with 18 additions and 5 deletions

View file

@ -2829,7 +2829,12 @@ handle_connections (gnupg_fd_t listen_fd,
break; /* ready */
/* Do not accept new connections but keep on running the
loop to cope with the timer events. */
* loop to cope with the timer events.
*
* Note that we do not close the listening socket because a
* client trying to connect to that socket would instead
* restart a new dirmngr instance - which is unlikely the
* intention of a shutdown. */
FD_ZERO (&fdset);
nfd = -1;
if (my_inotify_fd != -1)