Skip to content

prevent internal error: write after end#214

Merged
arturadib merged 1 commit intoshelljs:masterfrom
charlierudolph:patch-1
Aug 10, 2015
Merged

prevent internal error: write after end#214
arturadib merged 1 commit intoshelljs:masterfrom
charlierudolph:patch-1

Conversation

@charlierudolph
Copy link
Copy Markdown
Contributor

fixes #206

Was unable to write a reliable test but the following failed about half time without the change and did not fail with the change

shell.exec('git checkout -')

I'm convinced this is the appropriate fix based on the documentation as we are piping two readable streams to a writeable stream and if one ends and the other writes later we get a "write after end". The ends of the std streams does not appear to be consistent.

@charlierudolph
Copy link
Copy Markdown
Contributor Author

@arturadib @devtristan

chinthakagodawita pushed a commit to chinthakagodawita/docker-hat that referenced this pull request Jul 13, 2015
@JulianLaval
Copy link
Copy Markdown
Contributor

+1, can confirm that it fixes #206

Please merge!

arturadib added a commit that referenced this pull request Aug 10, 2015
prevent internal error: write after end
@arturadib arturadib merged commit 537eea5 into shelljs:master Aug 10, 2015
@arturadib
Copy link
Copy Markdown
Collaborator

merged this - but when will the streams be closed now?

@arturadib
Copy link
Copy Markdown
Collaborator

this is now published in v0.5.2

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.

write after end: internal error

3 participants