]> Sergey Matveev's repositories - public-inbox.git/commit
lei_to_mail: open FIFOs O_WRONLY so we block
authorEric Wong <e@80x24.org>
Thu, 31 Dec 2020 13:51:46 +0000 (13:51 +0000)
committerEric Wong <e@80x24.org>
Fri, 1 Jan 2021 05:00:39 +0000 (05:00 +0000)
commit3dab16e671b344dbfa925ecc640518532a88b16a
tree061d3462f5026ccc51edc1eff8e15c34799f1162
parentff91a3b8ba82d1d39dfd6b6ba18ba3134133693b
lei_to_mail: open FIFOs O_WRONLY so we block

Opening a FIFO with O_RDWR always succeeds on Linux, which
cause the cat(1) process invoked by t/lei_to_mail.t to get
stuck.  Furthermore O_APPEND makes no sense on FIFOs and
perhaps there's some kernel out there which will reject it.
lib/PublicInbox/LeiToMail.pm