assuan: Reorganize waiting for socket.
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Wed, 8 Nov 2017 15:15:30 +0000 (16:15 +0100)
committerPeter Michael Green <plugwash@raspbian.org>
Wed, 25 Jul 2018 10:25:32 +0000 (11:25 +0100)
commit22882d41328feb30afe724c6a553ffda19f860b7
treedbbf0022758b9fd8cb1ab82518acd44f875f9e58
parent422e2ef2c4dcacbd47a0380d5a274d2c6d6154fd
assuan: Reorganize waiting for socket.

* common/asshelp.c (wait_for_sock): New function, collecting
codepaths from...
(start_new_gpg_agent) here and...
(start_new_dirmngr) here.
--

This has no functional change, but makes it easier to make this
function more efficient.

GnuPG-bug-id: 3490
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
(cherry picked from commit 0471ff9d3bf8d6b9a359f3c426d70d0935066907)

Gbp-Pq: Topic from-master
Gbp-Pq: Name assuan-Reorganize-waiting-for-socket.patch
common/asshelp.c