-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds UnpackStdout | Fixes not waiting for stdio streams to close #37
base: master
Are you sure you want to change the base?
Conversation
Hi @honestabelink, Thank you for your contribution. May you please explain what it fixes? You have replaced Docs says: Possible you were about to add |
Hello @onikienko , Sorry about this, the intent was surprisingly to remove Also sorry for not including all the relevant information.
There still may be data in the stdio streams when exit is called, meaning your
For this command, And yes Thanks for your time. |
Thank you for your detailed answer @honestabelink Possible the issue you have with
is coming from this line Line 60 in 6dcc96e
I think we should have this here: let result = output; Looks like the current code return output only for |
Yes but, sorry more relevant information left out I've added additional functionality to extract files over stdout and handle the binary data. unpublished on my branch
I've been doing this to handle both cases.
|
Got your point @honestabelink You are right. Please send PR if possible. I will publish it with next release. |
https://nodejs.org/api/child_process.html#child_process_event_close 'close' guarantees stdio streams are finished
Thank you @honestabelink. I think I will merge this PR to the |
Adds initial support for unpacking over stdout.
Fixes early
'exit'
callbacks while stdio streams still contain data.Addresses the possibility of invoking handler functions multiple times.