On Wed, Nov 14, 2012 at 10:58:03AM +0000, Daniel P. Berrange wrote:
$ strace ./demo.pl 2>&1 | grep SIGPIPE
rt_sigaction(SIGPIPE, {SIG_IGN, [], SA_RESTORER, 0x343ca0efe0}, NULL, 8) = 0
rt_sigaction(SIGPIPE, {SIG_IGN, [], SA_RESTORER, 0x343ca0efe0}, {SIG_IGN, [],
SA_RESTORER, 0x343ca0efe0}, 8) = 0
and I don't see any EPIPE error when killing ssh
Daniel
$ strace ./lv.pl 2>&1 | grep SIGPIPE
rt_sigaction(SIGPIPE, {SIG_IGN, [], SA_RESTORER, 0x7fcf3318aff0}, {SIG_DFL, [], 0}, 8) =
0
This is with lv 0.9.12-4~bpo60+1 and the stock squeeze Perl 5.10.1.