kanaka/websockify — pull request #61 by vishvananda (2012-09-20 14:49:03+00:00)
Title: Reset SIGPIPE handler when calling Popen

Python ignores SIGPIPE on startup, because it prefers to check every write
and raise an IOError exception rather than taking the signal. Most Unix
subprocesses don't expect to work this way. This patch (adapted from Colin
Watson's post at http://tinyurl.com/2a7mzh5) sets SIGPIPE back to the default
action.