git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Marco Costalba" <mcostalba@gmail.com>
To: "Git Mailing List" <git@vger.kernel.org>
Subject: Easy shell question: how to make a script killing all his childs when killed?
Date: Sat, 9 Dec 2006 16:16:32 +0100	[thread overview]
Message-ID: <e5bfff550612090716p215167b9r2277b09c09b18894@mail.gmail.com> (raw)

Ok. I am really bad at scripting, so perhaps my question is very silly, but...

I create and run a script with the content:

git rev-list --header --boundary --parents --topo-order 2229ff5c7c  >
/tmp/qgit_135902672.txt

Then I kill the script while it's running, but his child
(git-rev-list) continues to run in background and I would like to stop
it either.

So how can I write the script to be sure that when stopped, it will
kill all his childern?

Thanks
Marco

P.S: I have no way to exec the script in fancy ways, I can just start

             reply	other threads:[~2006-12-09 15:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-09 15:16 Marco Costalba [this message]
2006-12-09 17:37 ` Easy shell question: how to make a script killing all his childs when killed? Alex Riesen
2006-12-09 17:51   ` Marco Costalba
2006-12-09 21:39     ` Alex Riesen
2006-12-09 23:06       ` Marco Costalba
2006-12-10 14:25         ` Alex Riesen

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=e5bfff550612090716p215167b9r2277b09c09b18894@mail.gmail.com \
    --to=mcostalba@gmail.com \
    --cc=git@vger.kernel.org \
    /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).