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>
Wed, 8 Nov 2017 16:55:55 +0000 (17:55 +0100)
commit0471ff9d3bf8d6b9a359f3c426d70d0935066907
treedda59c2e39275976978a54fd9c589dabc785758d
parent68284e1509490a68adcc6019a5bf8fb3674d3807
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>
common/asshelp.c