From: Sitaram Chamarty <sitaramc@gmail.com>
To: James Pickens <jepicken@gmail.com>
Cc: Git ML <git@vger.kernel.org>
Subject: Re: Background processes in post-receive hook
Date: Sun, 3 Apr 2011 08:52:50 +0530 [thread overview]
Message-ID: <BANLkTin4-fMhi_5H1oZ+gPB99stj5GRjVA@mail.gmail.com> (raw)
In-Reply-To: <AANLkTinrEt6DkwhknpDZ0iV9PR+7bBd3DAaPRJOgNFTG@mail.gmail.com>
On Sun, Apr 3, 2011 at 4:33 AM, James Pickens <jepicken@gmail.com> wrote:
> Hi,
>
> I have a post-receive hook (bash script) that launches several background
> processes and exits immediately. I do that so I don't have to wait for the
> background processes to finish every time I push to the repository, but Git
> seems to wait for them to finish anyways, even though the post-receive hook
> itself already exited. Is there any way to stop Git from waiting and let the
> push finish immediately? Sorry if I'm missing something obvious...
interestingly, the double fork trick doesn't work either...
( ( long-running-command & ) )
What Junio said may be the only alternative...
next prev parent reply other threads:[~2011-04-03 3:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-02 23:03 Background processes in post-receive hook James Pickens
2011-04-03 0:35 ` Junio C Hamano
2011-04-03 3:22 ` Sitaram Chamarty [this message]
2011-04-03 4:59 ` Joe Ratterman
2011-04-03 5:06 ` Jonathan Nieder
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=BANLkTin4-fMhi_5H1oZ+gPB99stj5GRjVA@mail.gmail.com \
--to=sitaramc@gmail.com \
--cc=git@vger.kernel.org \
--cc=jepicken@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.
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 NNTP newsgroup(s).