about summary refs log tree commit homepage
path: root/lib/PublicInbox/Spawn.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-11-02 09:35:36 +0000
committerEric Wong <e@80x24.org>2023-11-03 06:39:32 +0000
commit17ceb50fe054384dc65fdcbdc786dd125bf07947 (patch)
treeac86817b37770970b38acdce3a6f809c36244d6b /lib/PublicInbox/Spawn.pm
parent41a5eb41f85d2fe3c433f4395572c9a926de55f2 (diff)
downloadpublic-inbox-17ceb50fe054384dc65fdcbdc786dd125bf07947.tar.gz
We must use eof() combined with close() to detect errors
in situations involving the readline()' op since `readline'
(and most buffered I/O libraries) have weak error detection
support.

This fixes error detection for files opened for read/write
access.  The next commit will fix error detection for read-only
files.
Diffstat (limited to 'lib/PublicInbox/Spawn.pm')
0 files changed, 0 insertions, 0 deletions