Skip to content

node:child_process spawn() stream pipe write callbacks are not invoked #4731

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

Closed
cfal opened this issue Sep 9, 2023 · 0 comments · Fixed by #4841
Closed

node:child_process spawn() stream pipe write callbacks are not invoked #4731

cfal opened this issue Sep 9, 2023 · 0 comments · Fixed by #4841
Labels
bug Something isn't working

Comments

@cfal
Copy link
Contributor

cfal commented Sep 9, 2023

What version of Bun is running?

1.0

What platform is your computer?

Linux x86_64

What steps can reproduce the bug?

import child_process from 'child_process';

const p = child_process.spawn(
  'cat',
  {
    stdio: ['pipe', 'pipe', 'pipe'],
  }
);

p.stdin.write('hello', () => {
  console.log('flushed!');
});
$ node childproc.js  
flushed!
$ bun childproc.js
[no output]

What is the expected behavior?

write() callbacks are invoked

What do you see instead?

No response

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant