Broken pipe产生的原因通常是当管道读端没有在读,而管道的写端继续有线程在写,就会造成管道中断。(由于管道是单向通信的)
(gdb) backtrace#0 0x00130416 in __kernel_vsyscall ()#1 0x001fad84 in writev () from /lib/i386-linux-gnu/libc.so.6#2 0x0804c54a in write_stream (status=0, event=0x809a518) at io.c:361Program received signal SIGPIPE, Broken pipe.