agent: Silence --debug IPC output for connections from self.
authorWerner Koch <wk@gnupg.org>
Mon, 5 Sep 2016 14:13:41 +0000 (16:13 +0200)
committerWerner Koch <wk@gnupg.org>
Mon, 5 Sep 2016 14:24:14 +0000 (16:24 +0200)
commit0b99d1fd2a80b8efaacc731027d2b2ecd9eca699
treeafbfc162648bbd133b749598dd2f36cb63f678fd
parent2eeb5551c37659fdd59e8537fc77a9e7fb6a9204
agent: Silence --debug IPC output for connections from self.

* agent/command.c (server_local_s): Add fields 'greeting_seen' and
'connect_from_self'.
(io_monitor): Do not log connections from self.
(start_command_handler): Set flag 'connect_from_self'.
* agent/gpg-agent.c (check_own_socket_thread): Disable logging.
(do_start_connection_thread): Do not log conection start and
termination if IPC debugging is enabled.

Signed-off-by: Werner Koch <wk@gnupg.org>
agent/command.c
agent/gpg-agent.c