On Sat, Nov 19, 2016 at 06:27:16PM +0100, Marc Espie wrote:
> Wondering if your script isn't passing some weird signal handling (such as
> ignoring some signals) through.
> 

Seems like you are on to something :).

Some googling led me here:
https://blog.nelhage.com/2010/02/a-very-subtle-bug/

It talks about how python ignores SIGPIPE and shows how it can be worked
around when using subprocess.Popen.

I can solve the problem by adding the following line in /usr/sbin/pkg_add:
===
$SIG{PIPE} = 'DEFAULT';
===

-- 
Patrik Lundin

Reply via email to