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

Copied file handlers are not fully closed when returning results #38

Open
eunjungoh35 opened this issue Aug 18, 2023 · 0 comments
Open

Comments

@eunjungoh35
Copy link

Steps to reproduce

  1. Copy the folder containing exe files by calling copy()
  2. Try to spawn the child process by passing the copied file path right after copy function returns

Expected behavior
Start the child process without an error

Actual behavior
Failed to start the child process with EBUSY error

Additional information
You can fix this issue by changing 'finish' event to 'close' event here

write.on('finish', function() {

@eunjungoh35 eunjungoh35 changed the title Copied file handlers are not closed fully when returning results Copied file handlers are not fully closed when returning results Aug 18, 2023
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

No branches or pull requests

1 participant