puppeteer/src
Tim van der Lippe 03ab1c1b9c
fix: improve Ctrl + C support (#6011)
Fix child process killing when the parent process SIGINTs.

If you `ctrl + c` the Puppeteer parent process, we would sometimes not properly handle killing of the child processes. This would then leave child processes behind, with running Chromium instances. This in turn could block Puppeteer from launching again and results in
cryptic errors.

Instead of using the generic `process.kill` with the process id (which for some reason is negative the pid, which I don't get), we can kill the child process directly by calling `proc.kill`.

Fixes #5729.
Fixes #4796.
Fixes #4963.
Fixes #4333.
Fixes #1825.
2020-06-15 15:02:00 +02:00
..
launcher fix: improve Ctrl + C support (#6011) 2020-06-15 15:02:00 +02:00
.eslintrc.js chore: move code to src/ and emit with TypeScript (#5568) 2020-04-02 16:25:19 +02:00
Accessibility.ts feat(new-docs): add TSDoc comments to Accessibility (#5971) 2020-06-05 15:20:11 +01:00
api-docs-entry.ts chore: migrate away from Node's EventEmitter (#5979) 2020-06-15 11:52:19 +01:00
api.ts chore: migrate away from Node's EventEmitter (#5979) 2020-06-15 11:52:19 +01:00
Browser.ts chore: migrate away from Node's EventEmitter (#5979) 2020-06-15 11:52:19 +01:00
BrowserFetcher.ts chore: migrate away from Node's EventEmitter (#5979) 2020-06-15 11:52:19 +01:00
Connection.ts chore: migrate away from Node's EventEmitter (#5979) 2020-06-15 11:52:19 +01:00
ConnectionTransport.ts chore: remove src/externs.d.ts (#5811) 2020-05-06 14:23:07 +01:00
ConsoleMessage.ts chore: extract ConsoleMessage and FileChooser into its own module (#5856) 2020-05-13 11:30:29 +01:00
Coverage.ts chore: stop Protocol types being globally available (#5899) 2020-05-21 17:04:05 +01:00
DeviceDescriptors.ts chore: add Prettier (#5825) 2020-05-07 12:54:55 +02:00
Dialog.ts feat(new-docs): migrate Dialog documentation to TSDoc (#5981) 2020-06-09 09:19:42 +01:00
DOMWorld.ts docs: replace @return with @returns (#6006) 2020-06-12 12:38:24 +02:00
EmulationManager.ts chore: Introduce API Extractor and start generating documentation (#5967) 2020-06-04 11:47:13 +01:00
Errors.ts chore: migrate src/Puppeteer to TypeScript (#5789) 2020-05-05 09:36:44 +01:00
EventEmitter.ts chore: migrate away from Node's EventEmitter (#5979) 2020-06-15 11:52:19 +01:00
Events.ts chore: add Prettier (#5825) 2020-05-07 12:54:55 +02:00
ExecutionContext.ts docs: replace @return with @returns (#6006) 2020-06-12 12:38:24 +02:00
FileChooser.ts chore: stop Protocol types being globally available (#5899) 2020-05-21 17:04:05 +01:00
FrameManager.ts chore: migrate away from Node's EventEmitter (#5979) 2020-06-15 11:52:19 +01:00
helper.ts chore: migrate away from Node's EventEmitter (#5979) 2020-06-15 11:52:19 +01:00
HTTPRequest.ts docs: replace @return with @returns (#6006) 2020-06-12 12:38:24 +02:00
HTTPResponse.ts chore: rename Response to HTTPResponse (#5940) 2020-05-29 11:49:30 +01:00
index.ts chore: move index.js into src (#6007) 2020-06-12 13:53:02 +01:00
Input.ts chore: add Prettier (#5825) 2020-05-07 12:54:55 +02:00
JSHandle.ts docs: replace @return with @returns (#6006) 2020-06-12 12:38:24 +02:00
Launcher.ts docs: replace @return with @returns (#6006) 2020-06-12 12:38:24 +02:00
LifecycleWatcher.ts docs: replace @return with @returns (#6006) 2020-06-12 12:38:24 +02:00
NetworkManager.ts chore: migrate away from Node's EventEmitter (#5979) 2020-06-15 11:52:19 +01:00
Page.ts chore: migrate away from Node's EventEmitter (#5979) 2020-06-15 11:52:19 +01:00
PipeTransport.ts chore: Introduce API Extractor and start generating documentation (#5967) 2020-06-04 11:47:13 +01:00
protocol.d.ts Don't use expect within Promises (#5466) (#5473) 2020-05-26 09:22:11 +01:00
Puppeteer.ts chore: Introduce API Extractor and start generating documentation (#5967) 2020-06-04 11:47:13 +01:00
PuppeteerViewport.ts chore: remove src/externs.d.ts (#5811) 2020-05-06 14:23:07 +01:00
QueryHandler.ts chore: Introduce API Extractor and start generating documentation (#5967) 2020-06-04 11:47:13 +01:00
SecurityDetails.ts chore: stop Protocol types being globally available (#5899) 2020-05-21 17:04:05 +01:00
Target.ts chore: Introduce API Extractor and start generating documentation (#5967) 2020-06-04 11:47:13 +01:00
TimeoutSettings.ts chore: add Prettier (#5825) 2020-05-07 12:54:55 +02:00
Tracing.ts chore: add Prettier (#5825) 2020-05-07 12:54:55 +02:00
USKeyboardLayout.ts chore: add Prettier (#5825) 2020-05-07 12:54:55 +02:00
WebSocketTransport.ts chore: migrate away from Node's EventEmitter (#5979) 2020-06-15 11:52:19 +01:00
WebWorker.ts chore: migrate away from Node's EventEmitter (#5979) 2020-06-15 11:52:19 +01:00