We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea36345 commit 422503eCopy full SHA for 422503e
src/node/cli.ts
@@ -204,6 +204,7 @@ export class WrapperProcess {
204
logger.info("Relaunching...");
205
this.started = undefined;
206
if (this.process) {
207
+ this.process.removeAllListeners();
208
this.process.kill();
209
}
210
try {
@@ -223,7 +224,9 @@ export class WrapperProcess {
223
224
public start(): Promise<void> {
225
if (!this.started) {
226
const child = this.spawn();
- this.started = ipcMain.handshake(child);
227
+ this.started = ipcMain.handshake(child).then(() => {
228
+ child.once("exit", (code) => exit(code!));
229
+ });
230
this.process = child;
231
232
return this.started;
0 commit comments