exit code 100 when updating, so that some service managers restart
Massimo Melina committed
Apr 9, 2026 at 15:01 UTC
1f70ca4ae050b8c388c517a742328d137eadc539
1 file changed
+1
-1
src/update.ts
+1
-1
@@ -192,7 +192,7 @@ export async function update(tagOrUrl: string='') {
192
spawnSync(cmdEscape(newBin), ['--updating', binFile, '--cwd .'], { shell: true, stdio: [0,1,2] }) // sync necessary to work on Mac by double-click
193
})
194
console.log("Quitting")
195
- setTimeout(() => process.exit()) // give time to return (and caller to complete, eg: rest api to reply)
195
+ setTimeout(() => process.exit(100)) // non-zero, otherwise some service managers (like Shawl) won't restart the process
196
}
197
catch (e: any) {
198
pluginsWatcher.unpause()