1
vote
4answers
389 views

When piping input from one program to another, what happens to the original program if the program receiving output is killed?

I am piping the output of a program like this using bash: program1 | program2 If program2 is killed somehow (in my case by a PHP fatal error), what happens to the instance of program1?