Comments (3)
This was changed in #269
Killing a process is really just sending a signal, which is synchronous, and is why the original interface of returning a Promise was not ideal. See https://nodejs.org/api/process.html#processkillpid-signal
We should update our documentation. Thanks for catching this!
from chrome-launcher.
BTW - it's important to note that if you are wanting to wait for confirmation that the process is gone, you'll have to listen to the child process's exit
event: https://nodejs.org/api/child_process.html#event-exit
from chrome-launcher.
Perfect!!
Now we are using exactly the approach that you are suggesting but since in the previous implementation there was this promise, we were relying on it!. And that is rights we need some feedback / confirmation / error handling to be ensure there is not hang chrome process there :)
The main problem was the mismatch Documentation - Code :) but we always trust on the code hahahah
We can close the thread
from chrome-launcher.
Related Issues (20)
- sandbox utility bwrap remains open after kill or killall HOT 1
- how to start chrome in kiosk mode? HOT 1
- process.env.PROGRAMFILES is error
- Inconsistent Chromium detection in cross platform
- Reporting unsuccessful exit code
- crash when launch with remote debugging pipe
- Reuse an existing window HOT 1
- RangeError [ERR_FS_FILE_TOO_LARGE]: File size (3055630622) is greater than 2 GiB
- Chrome launcher wont launch HOT 1
- Beta and Dev channels are not detected
- igmore
- /Users/sample/node_modules/chrome-launcher/dist/chrome-finder.js:14 const log = require('lighthouse-logger'); ^ Error [ERR_REQUIRE_ESM]: require() of ES Module HOT 1
- Unknown error when ChromeLauncher.launch() in worker thread HOT 1
- Update readme for 1.0.0: ERR_REQUIRE_ESM
- `prefs` option doesn't work HOT 3
- Issue determining temp dir path HOT 1
- flag for setting useragentdata
- How to access environments variable with JS in chrome?
- move the red error dot to the console tab where it belongs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chrome-launcher.