Skip to content

Commit

Permalink
Merge "ui: run-dev-server, kill more aggressively on Ctrl-C" into main
Browse files Browse the repository at this point in the history
  • Loading branch information
primiano authored and Gerrit Code Review committed Jan 17, 2025
2 parents fbc034c + 25e49e1 commit 681f6c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,9 @@ async function main() {
process.on('SIGINT', () => {
console.log('\nSIGINT received. Killing all child processes and exiting');
for (const proc of subprocesses) {
if (proc) proc.kill('SIGINT');
if (proc) proc.kill('SIGKILL');
}
process.kill(0, 'SIGKILL'); // Kill the whole process group.
process.exit(130); // 130 -> Same behavior of bash when killed by SIGINT.
});

Expand Down

0 comments on commit 681f6c5

Please sign in to comment.