Skip to content

Commit

Permalink
fix: process.kill("SIGABRT") not supported on windows (#4308)
Browse files Browse the repository at this point in the history
* fix: process.kill("SIGABRT") not supported on windows

* fix: use process.kill("SIGINT") across all operative systems

* Update .changeset/clever-insects-shave.md

---------

Co-authored-by: Siddharth Suresh <siddh.suresh@gmail.com>
  • Loading branch information
lmisea and siddhsuresh authored Mar 7, 2024
1 parent 6f44c23 commit 76a2544
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/clever-insects-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"blitz": patch
---

Use `SIGINT` signal instead of `SIGABRT` to stop the process, when using custom server for better compatibility with operative systems
2 changes: 1 addition & 1 deletion packages/blitz/src/cli/utils/next-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export function startCustomServer(
console.log("\n")
//@ts-ignore -- incorrect TS type from node
process.exitCode = RESTART_CODE
process.kill("SIGABRT")
process.kill("SIGINT")
}
},
}
Expand Down

0 comments on commit 76a2544

Please sign in to comment.