From: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
To: Jeff King <peff@peff.net>
Cc: GIT Mailing-list <git@vger.kernel.org>
Subject: Re: [PATCH 1/2] credential-cache--daemon.c: Don't leave stale socket on --exit
Date: Thu, 27 Oct 2011 18:29:46 +0100 [thread overview]
Message-ID: <4EA9950A.9020208@ramsay1.demon.co.uk> (raw)
In-Reply-To: <20111022191711.GC1785@sigill.intra.peff.net>
Jeff King wrote:
> On Sat, Oct 22, 2011 at 06:24:51PM +0100, Ramsay Jones wrote:
>
>> Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
>> ---
>> credential-cache--daemon.c | 23 ++++++++++++-----------
>> 1 files changed, 12 insertions(+), 11 deletions(-)
>
> Looks sane, and I'll probably squash it in. Alternatively, we could also
> set a signal/exit handler to clean up our socket when we die. That would
> also cover the error exit cases.
I considered this, *very* briefly, but decided it wasn't worth the effort
or complexity.
> In either case, I think we need to handle stale sockets better. They
> will happen eventually due to power loss or kill -9, anyway.
Indeed, hence patch #2. ;-)
I suspect that, given the current code, the *vast* majority of stale sockets
would be (somewhat gratuitously) created by the --exit action - hence this
patch. :-P
ATB,
Ramsay Jones
next prev parent reply other threads:[~2011-10-27 17:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-22 17:24 [PATCH 1/2] credential-cache--daemon.c: Don't leave stale socket on --exit Ramsay Jones
2011-10-22 19:17 ` Jeff King
2011-10-27 17:29 ` Ramsay Jones [this message]
2011-10-27 17:42 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EA9950A.9020208@ramsay1.demon.co.uk \
--to=ramsay@ramsay1.demon.co.uk \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.