git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Easy shell question: how to make a script killing all his childs when killed?
@ 2006-12-09 15:16 Marco Costalba
  2006-12-09 17:37 ` Alex Riesen
  0 siblings, 1 reply; 6+ messages in thread
From: Marco Costalba @ 2006-12-09 15:16 UTC (permalink / raw)
  To: Git Mailing List

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-12-10 14:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-09 15:16 Easy shell question: how to make a script killing all his childs when killed? Marco Costalba
2006-12-09 17:37 ` 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

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).