From: Jeff King <peff@peff.net>
To: Jason Vas Dias <jason.vas.dias@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: clone hang prevention / timeout?
Date: Wed, 13 Apr 2016 18:29:00 -0400 [thread overview]
Message-ID: <20160413222900.GA10011@sigill.intra.peff.net> (raw)
In-Reply-To: <CALyZvKwxE4T8-FmEYgPMgAFKLmeAY5f-y-mDL8S9twTb0umRaA@mail.gmail.com>
On Mon, Apr 11, 2016 at 10:49:19PM +0100, Jason Vas Dias wrote:
> Is there any option I can specify to get the clone to timeout, or do I manually
> have to strace the git process and send it a signal after a hang is detected?
Oh, one other thing you might consider, it something like "timeout" from
GNU coreutils, which puts a hard cap on the length of time a process can
run.
It's totally unaware of the state of the process, though, so if you
really do have a clone which takes an hour, it might very well kill it
at 99% complete. It has no mechanism for "gee, this process looks like
it hasn't done anything for 5 minutes".
I don't know offhand of a general tool for that.
-Peff
next prev parent reply other threads:[~2016-04-13 22:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-11 21:49 clone hang prevention / timeout? Jason Vas Dias
2016-04-12 8:01 ` Eric Wong
2016-04-13 22:24 ` Jeff King
2016-04-13 22:29 ` Jeff King [this message]
2016-04-14 18:32 ` Jason Vas Dias
2016-04-30 9:04 ` Eric Wong
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160413222900.GA10011@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=jason.vas.dias@gmail.com \
/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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).