From: David Goulet Date: Tue, 6 Nov 2012 14:41:35 +0000 (-0500) Subject: Fix: Add EPIPE error handling on buffer splice X-Git-Tag: v2.1.0-rc7~20 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=00c8752be51d75fcec3c30302db3d42cd714f02c;hp=00c8752be51d75fcec3c30302db3d42cd714f02c;p=lttng-tools.git Fix: Add EPIPE error handling on buffer splice Even though this is _not_ documented in splice(2), if the fd_out is a socket but closed on one end, splice returns a negative value and set errno to EPIPE. The man page specifies a EBADF but I guess both are possible (and it is according to the kernel 3.6.2 source). So, when streaming a kernel session (using splice), if the relayd quits, a splice on the socket returns an EPIPE. Signed-off-by: David Goulet ---