From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: Problems with background jobs in a script.
Date: Sat, 02 Aug 2008 15:55:55 -0700 [thread overview]
Message-ID: <080802155555.ZM1078@torch.brasslantern.com> (raw)
In-Reply-To: <pdy98830624086ac4b89c662c83@[192.168.1.2]>
On Aug 1, 5:18am, Dave Yost wrote:
}
} All I'm trying to do is to get a script to recursively kill all of
} its background processes on exit. (In my case, this should be an
} issue only when the script is killed.)
Is there a reason that killing the process group and letting the OS
deal with propagating the signals will not work?
TRAPEXIT() { kill -1 0 }
(Change -1 to whatever signal you wanted to send.)
next prev parent reply other threads:[~2008-08-02 22:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-01 12:18 Dave Yost
2008-08-02 22:55 ` Bart Schaefer [this message]
2008-08-03 11:27 ` Peter Stephenson
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=080802155555.ZM1078@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@sunsite.dk \
/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.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
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).