Skip to content
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

exec does not close stream in node >= 14.0.0 <14.17.0 #270

Open
parmentf opened this issue Oct 18, 2022 · 0 comments
Open

exec does not close stream in node >= 14.0.0 <14.17.0 #270

parmentf opened this issue Oct 18, 2022 · 0 comments
Labels
bug Something isn't working @ezs/spawn

Comments

@parmentf
Copy link
Collaborator

The exec statement of @ezs/spawn uses the spawn event to resolve a promise.

The pool code assume that this event exists if node version is greater or equal to 14.0.0.

https://github.com/Inist-CNRS/ezs/blob/master/packages/spawn/src/pool.js#L92

But nodejs documentation says that the event was added at node 14.17.0 & 15.1.0

image

Consequence: when using a node between 14.0 and 14.17, the promise is not resolved (nor rejected), and the process is hanging.

@parmentf parmentf added bug Something isn't working @ezs/spawn labels Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working @ezs/spawn
Projects
None yet
Development

No branches or pull requests

1 participant