assuan: Reorganize waiting for socket.
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Wed, 8 Nov 2017 15:15:30 +0000 (16:15 +0100)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Thu, 19 Jul 2018 18:02:31 +0000 (19:02 +0100)
commit325733972c8f220194c6995e05ab03bdd4f527f7
tree1eed5ab154be11cc67e704e7acebfe3c4a1f1034
parent8a97afa85074c234dbf218f8dbcd71327554075c
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