Skip to content

suppress broken pipe reporting #40

@sitkevij

Description

@sitkevij

Thanks for fixing this!

One nit: Generally unix tools don't report broken pipe errors since a tool further in the pipeline exiting without consuming all the output is normal.

See:

$ dd if=/dev/random bs=512 count=10 | xxd | head -n 1
10+0 records in
10+0 records out
5120 bytes (5.1 kB, 5.0 KiB) copied, 0.000457 s, 11.2 MB/s
00000000: fb7c 0e2c 7e8c 6cd9 da0f 74aa 86b9 2cf6  .|.,~.l...t...,.

Wheras:

$ dd if=/dev/random bs=512 count=10 | hx | head -n 1
10+0 records in
10+0 records out
5120 bytes (5.1 kB, 5.0 KiB) copied, 0.001642 s, 3.1 MB/s
0x000000: 0x02 0x3b 0x56 0x5d 0xb1 0x9a 0x6e 0xc0 0x3f 0xb0 .;V]..n.?.
error: Broken pipe (os error 32)

Originally posted by @pR0Ps in #23 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions