Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Trap SIGTERM and kill running process



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