Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Trap SIGTERM and kill running process
- X-seq: zsh-users 20094
- From: Thorsten Kampe <thorsten@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Trap SIGTERM and kill running process
- Date: Sun, 5 Apr 2015 08:34:01 +0200
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hi,
is it possible to trap SIGTERM and make sure that running processes
in the script (like `sleep 100`) will also be killed? I've read about
process groups but I'd rather terminate the group in the trap
handler.
Thorsten
Messages sorted by:
Reverse Date,
Date,
Thread,
Author