Skip to content

add error processing for stdout closing, such as on head -1 - #5

Open
conrado wants to merge 1 commit into
toshihirock:masterfrom
conrado:master
Open

add error processing for stdout closing, such as on head -1#5
conrado wants to merge 1 commit into
toshihirock:masterfrom
conrado:master

Conversation

@conrado

@conrado conrado commented Aug 1, 2017

Copy link
Copy Markdown

When piping the output through a program that might close the stdout file descriptor, such as head -1 you would be presented with an EPIPE error:

events.js:182
      throw er; // Unhandled 'error' event
      ^

Error: write EPIPE
    at exports._errnoException (util.js:1024:11)
    at WriteWrap.afterWrite [as oncomplete] (net.js:851:14)

This PR fixes that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant