Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Implicit killing of subprocesses
On Wed, 28 Aug 2013 14:54:32 +0200
René Neumann <lists@xxxxxxxxx> wrote:
> When I use
>
> coproc dbus-monitor
> while read -p line; do ... done
>
> the dbus-monitor process lurks around after the script finishes
> (breaking or returning from the loop).
Hmm... assuming this is interactive, you should see enough job control
messages to alert you to what's going on. With no options set, it would
be something like:
% coproc cat
[1] 4757
% exit
zsh: you have running jobs.
% exit
zsh: warning: 1 jobs SIGHUPe
indicating the coprocess has been sent SIGHUP. If you had the NOHUP
option set, it would still warn you but it wouldn't send SIGHUP.
Not sure what happens non-interactively, coproc is really there for use
with job control.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author