I've created a test program, available at [1], which will hopefully help verify this patch. 1: https://gist.github.com/lmb/a35e7b9566fa79e7bf971ac21bbb9efb#file-0002-add-tests-for-sigpipe-behaviour-patch Best, Lorenz