diff options
author | Ron Yorston <rmy@pobox.com> | 2018-03-06 14:08:23 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2018-03-06 14:08:23 +0000 |
commit | 922dba2a9a00c35abb19c5dba01169e7335ce23b (patch) | |
tree | 7152daf82d775da4fc588ce81e435730a9eb30dd /init | |
parent | c44b18ace0b3e020e594f4d4ab2c9a1211ec90ab (diff) | |
download | busybox-w32-922dba2a9a00c35abb19c5dba01169e7335ce23b.tar.gz busybox-w32-922dba2a9a00c35abb19c5dba01169e7335ce23b.tar.bz2 busybox-w32-922dba2a9a00c35abb19c5dba01169e7335ce23b.zip |
winansi: check for broken pipe
Microsoft Windows doesn't support SIGPIPE and its support for the
EPIPE error is somewhat inadequate. Most of the time a broken pipe
leads to an EINVAL error which is misleading:
$ yes hello | head -1
hello
yes: Invalid argument
Add a function to test for the underlying Windows error that indicates
a broken pipe and set errno to EPIPE. Call this function in a few
strategic places.
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions