Pass SIGINT signals to the spawned child process (#5861)

* Pass SIGINT signals down to the spawned child

* Kill process with correct signal

* Fix lint issues

* Fix exit for outer process
This commit is contained in:
bill-improbableio
2017-06-25 00:04:53 +01:00
committed by Henry Zhu
parent a330cf2b09
commit 851d2cb6e0

View File

@@ -90,5 +90,10 @@ getV8Flags(function (err, v8Flags) {
}
});
});
process.on("SIGINT", () => {
proc.kill("SIGINT");
process.exit(1);
});
}
});