I am starting following command from a bash script (arguments omitted for simplicity)
avconv | sox | nc
I am starting about 150 such commands on the same box at the same time.
nc command sends the stream to another host. When that host dies,
nc dies but
sox can stay alive. When I then
killall sox in this situation,
avconv stays alive.
Should there not be a
When I execute the bash script manually and
nc dies, the other two processes die too. But not when I start many such scripts .
Is it possible that
sigpipe does not work when pipe buffers are full or the system is otherwise highly contended? How can I work around it?