-
Notifications
You must be signed in to change notification settings - Fork 16.9k
Closed as not planned
Closed as not planned
Copy link
Labels
15-x-y16-x-y17-x-y18-x-y19-x-y20-x-ybug 🪲has-repro-gistIssue can be reproduced with code at https://gist.github.com/Issue can be reproduced with code at https://gist.github.com/platform/linuxstale
Description
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
19.0.7
What operating system are you using?
Other Linux
Operating System Version
Debian 10 (buster)
What arch are you using?
arm64 (including Apple Silicon)
Last Known Working Electron version
No response
Expected Behavior
Running the following:
spawn('sleep', ['10'], {
detached: true,
stdio: 'ignore',
}).unref();should allow Electron to exit without waiting for the child process.
Actual Behavior
Electron emits the correct events, however some electron processes linger until the child process has completed.
Testcase Gist URL
https://gist.github.com/Josh-G/aadee165b50c7629d5f1c9340728a8ca
Additional Information
I've also created a repo with a workflow that demonstrates the issue; https://github.com/Josh-G/electron-spawn-detached
I believe this may be the same as, or a regression of, #2208 #13870.
I've reproduced this on Linux on arm64 + x64 with Debian and Ubuntu (thru GitHub Action).
flotwig, willpower232, williamrenfrew, Prinzhorn, Nantris and 1 more
Metadata
Metadata
Assignees
Labels
15-x-y16-x-y17-x-y18-x-y19-x-y20-x-ybug 🪲has-repro-gistIssue can be reproduced with code at https://gist.github.com/Issue can be reproduced with code at https://gist.github.com/platform/linuxstale