Skip to content

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

@eunjungoh35

Description

@eunjungoh35

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() {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions