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