git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: clone hang prevention / timeout?

From
Jeff King <peff@peff.net>
Date
Apr 13, 2016, 22:29 UTC
Message-ID
<20160413222900.GA10011@sigill.intra.peff.net>
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
Previous: Jeff KingNext: Jason Vas Dias
Message 4 of 6 in “clone hang prevention / timeout?”
  1. Jason Vas DiasApr 11, 2016
  2. Eric WongApr 12, 2016
  3. Jeff KingApr 13, 2016
  4. Jeff KingApr 13, 2016
  5. Jason Vas DiasApr 14, 2016
  6. Eric WongApr 30, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.