simon-git: putty (master): Simon Tatham
Commits to Tartarus CVS repository.
tartarus-commits at lists.tartarus.org
Thu May 7 19:07:56 BST 2015
TL;DR:
47c9a6e Clean up Unix Pageant's setup and teardown.
Repository: git://git.tartarus.org/simon/putty.git
On the web: http://tartarus.org/~simon-git/gitweb/?p=putty.git
Branch updated: master
Committer: Simon Tatham <anakin at pobox.com>
Date: 2015-05-07 19:07:56
commit 47c9a6ef0bda6bed52f1c37ff4f8ef98734d349a
web diff http://tartarus.org/~simon-git/gitweb/?p=putty.git;a=commitdiff;h=47c9a6ef0bda6bed52f1c37ff4f8ef98734d349a;hp=4a875b5f8b806a91c8a309d699d37d251d78b8f7
Author: Simon Tatham <anakin at pobox.com>
Date: Thu May 7 19:04:25 2015 +0100
Clean up Unix Pageant's setup and teardown.
I've moved the listening socket setup back to before the lifetime
preparations, so in particular we find out that we couldn't bind to
the socket _before_ we fork. The only part that really needed to come
after lifetime setup was the logging setup, so that's now a separate
function called later.
Also, the random exit(0)s in silly places like x11_closing have turned
into setting a time_to_die flag, so that all clean exits funnel back
to the end of main() which at least tries to tidy up a bit afterwards.
(Finally, fixed a small bug in testing the return value of waitpid(),
which only showed up once we didn't exit(0) after the first wait.
Ahem.)
pageant.c | 14 ++++++++----
pageant.h | 8 ++++---
unix/uxpgnt.c | 69 +++++++++++++++++++++++++++++++++++++++++----------------
3 files changed, 65 insertions(+), 26 deletions(-)
More information about the tartarus-commits
mailing list