[dm-devel] [PATCH V7 1/4] libmpathcmd: Block SIGPIPE when write()

Bart Van Assche bart.vanassche at sandisk.com
Fri Aug 12 16:01:05 UTC 2016


On 08/12/2016 05:12 AM, Gris Ge wrote:
>  * Just block SIGPIPE when write() and restore it when done.
>  * Use 'errno_save()' to preserve the errno of write().

Hello Gris,

Why do you want to block SIGPIPE around a write() call that you want to 
use to write to a file? If you use write_all() to write to stdout then 
blocking SIGPIPE sounds wrong to me.

Thanks,

Bart.




More information about the dm-devel mailing list