[PATCH 2/4] xfsdump: process EPIPE instead of catching SIGPIPE
Christoph Hellwig
hch at infradead.org
Tue Aug 2 05:15:30 CDT 2011
On Fri, Jul 29, 2011 at 03:40:09PM -0500, Bill Kendall wrote:
> Looking forward towards a multi-threaded xfsdump, it's simpler to
> handle pipe failures as a system call failure (EPIPE) rather than
> through a signal handler which may run in a separate thread. The
> existing error handling code handles EPIPE just fine, so the only
> required change is to ignore SIGPIPE. Some sections of code already
> temporarily ignore SIGPIPE -- they no longer need to do so since it
> will already be ignored.
Looks good, and the less we do with signals, the better.
Reviewed-by: Christoph Hellwig <hch at lst.de>
More information about the xfs
mailing list