diff options
author | Eric Wong <e@80x24.org> | 2023-11-02 09:35:36 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-11-03 06:39:32 +0000 |
commit | 17ceb50fe054384dc65fdcbdc786dd125bf07947 (patch) | |
tree | ac86817b37770970b38acdce3a6f809c36244d6b /lib/PublicInbox/Spawn.pm | |
parent | 41a5eb41f85d2fe3c433f4395572c9a926de55f2 (diff) | |
download | public-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