On 3/28/11 9:59 AM, tytus64 wrote:
> 
> Interesting... 
> I used kill -HUP <pid> instead of killall -HUP <prog_name> and it works
> without interrupting the first loop. I also noticed 2 processes running when
> the first loop is iterating but only 1 when the second loop is iterating:

There is a bash process that is forked to execute the `while read ...'
in the first pipeline loop.  It has to hang around the whole time, so it
can run the while loop and exit with the correct status.  If you send it
a SIGHUP with `killall bash', it will exit.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

Reply via email to