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

Re: Background processes in post-receive hook

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Apr 3, 2011, 05:06 UTC
Message-ID
<20110403050619.GA32750@elie>
In-Reply-To
<BANLkTin4-fMhi_5H1oZ+gPB99stj5GRjVA@mail.gmail.com>
Sitaram Chamarty wrote:
> interestingly, the double fork trick doesn't work either...
>
>   ( ( long-running-command & ) )
Hopefully closing the output pipe does the trick.
	exec long-running-command >&- 2>&- &

Thanks for an interesting example. Jonathan

Previous: Joe Ratterman
Message 5 of 5 in “Background processes in post-receive hook”
  1. James PickensApr 2, 2011
  2. Junio C HamanoApr 3, 2011
  3. Sitaram ChamartyApr 3, 2011
  4. Joe RattermanApr 3, 2011
  5. Jonathan NiederApr 3, 2011

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.