-
Notifications
You must be signed in to change notification settings - Fork 9.3k
fix(Launcher): do not detach child process on windows #2081
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
Conversation
|
@alixaxel @JoelEinbinder can you guys please check if this works for you on win? Process management is not a well-tested area of ours. |
|
@aslushnikov I'm not a windows user. |
|
@alixaxel oops, sorry for the noize. |
|
@aslushnikov Can you provide some code I could test on Windows to be sure this fix the issue? |
|
@vsemozhetbyt Try running the following script and then terminate running node.js program differently:
In all the cases, the spawned chromium instance should be closed. var pptr = require('puppeteer');
(async() => {
const browser = await pptr.launch();
console.log('Launched!');
})(); |
|
@aslushnikov I can confirm that with this patch all three terminations of the running node.js program also close the spawned chromium instance on Windows 7 x64 with the |
|
@vsemozhetbyt: Thank you. @JoelEinbinder, let's merge this? |
|
I still get some errors when closing things on windows, but it actually closes things now so I'd say this is better. |
Fixes #2053.