Re: [PATCH V7 1/4] libmpathcmd: Block SIGPIPE when write()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel



[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux