Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Trap SIGTERM and kill running process
- X-seq: zsh-users 20097
 
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
 
- To: zsh-users@xxxxxxx
 
- Subject: Re: Trap SIGTERM and kill running process
 
- Date: Sun, 5 Apr 2015 18:38:47 -0700
 
- In-reply-to: <mfrvv1$db2$1@ger.gmane.org>
 
- 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
 
- References: <mfql13$qc5$1@ger.gmane.org> 	<150405093239.ZM18800@torch.brasslantern.com> 	<mfrvv1$db2$1@ger.gmane.org>
 
On Apr 5,  8:46pm, Thorsten Kampe wrote:
}
} [...]  My first attempt today was `kill 0` which 
} according to the man page should kill the current process group. It 
} worked in Bash and Z Shell but in Zsh I wasn't able to Ctrl-C a 
} `while true` loop with that trap.
Version?  I'm able to interrupt 'while true; do :; done' with a Ctrl-C
in that circumstance.  However, "kill -INT 0" did not propagate SIGINT
to a backgrounded "sleep" child, whereas "kill -TERM" was propagated.
Using -$$ instead of 0 made no difference to the SIGINT.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author