Skip to content

Commit

Permalink
ignore sigint in node wrapper (#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
phiSgr authored Feb 15, 2024
1 parent e3b773b commit dbdf020
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/moose-cli-npm/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ function getExePath() {
*/
function run() {
const args = process.argv.slice(2);
// ignore sigint in the node parent process
// so that we can wait until we have processResult when the rust process returns
// instead of prematurely exiting
process.on('SIGINT', () => {})
const processResult = spawnSync(getExePath(), args, { stdio: "inherit" });
process.exit(processResult.status ?? 0);
}
Expand Down

0 comments on commit dbdf020

Please sign in to comment.