Skip to content

Commit

Permalink
fix(solo): kill off sim-chain child with SIGTERM
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Feb 10, 2022
1 parent 118fc21 commit e85dccd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/solo/src/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ const deployWallet = async ({ agWallet, deploys, hostport }) => {

// We turn off NODE_OPTIONS in case the user is debugging.
const { NODE_OPTIONS: _ignore, ...noOptionsEnv } = process.env;
let unregister;
let unregisterShutdown = () => {};
const cp = fork(
agoricCli,
[
Expand All @@ -323,11 +323,11 @@ const deployWallet = async ({ agWallet, deploys, hostport }) => {
if (err) {
console.error(err);
}
unregister();
unregisterShutdown();
},
);
const { registerShutdown } = makeShutdown();
unregister = registerShutdown(() => cp.kill('SIGINT'));
unregisterShutdown = registerShutdown(() => cp.kill('SIGTERM'));
};

const start = async (basedir, argv) => {
Expand Down

0 comments on commit e85dccd

Please sign in to comment.