Update process exit logic when handling termination signals

This commit is contained in:
2026-05-06 05:39:37 +02:00
parent 2e7b438b66
commit 7142cf6395

View File

@@ -108,7 +108,7 @@ async function launchTauri() {
stopSpawnedBackend()
if (signal) {
process.kill(process.pid, signal)
process.exit(signal === 'SIGINT' || signal === 'SIGTERM' ? 0 : 1)
return
}