From: Stas S. <st...@ak...> - 2005-11-29 19:09:38
|
Hi. I think ignoring SIGPIPE is undesireable when timidity works via pipes. With that patch timidity will ignore SIGPIPE only if control_port is the socket. Also, this patch changes the way server writes data to socket. For some reason when timidity is already blocked on write() and the socket is closed on the other end, SIGPIPE doesn't arrive, and timidity reparents to init and sticks forever. This patch makes it to use non-blocking writes, in which case it always notices if the remote have closed the connection. |