MCPcopy Create free account
hub / github.com/FlashpointProject/launcher / kill

Method kill

src/back/ManagedChildProcess.ts:155–160  ·  view source on GitHub ↗

Politely ask the child process to exit (if it is running).

()

Source from the content-addressed store, hash-verified

153
154 /** Politely ask the child process to exit (if it is running). */
155 public async kill(): Promise<void> {
156 if (this.process) {
157 this.setState(ProcessState.KILLING);
158 await this.treeKill(this.process.pid);
159 }
160 }
161
162 /** Restart the managed child process (by killing the current, and spawning a new). */
163 public async restart(): Promise<void> {

Callers 4

registerRequestCallbacksFunction · 0.80
createApiFactoryFunction · 0.80
exitFunction · 0.80
waitForServiceDeathFunction · 0.80

Calls 1

setStateMethod · 0.95

Tested by

no test coverage detected