fix: handle SIGQUIT in dev:watch to prevent runtime crash on macOS (#405)

SIGQUIT (Ctrl+\) was not in the signal notify list, causing Go's default
handler to dump goroutines. On macOS ARM64 this triggers a known runtime
bug where semasleep panics on the signal stack.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Nikhil
2026-03-04 12:09:19 -08:00
committed by GitHub
parent 51505e1de6
commit 010fb88b56

View File

@@ -80,7 +80,7 @@ func runWatch(cmd *cobra.Command, args []string) error {
defer cancel()
sigCh := make(chan os.Signal, 2)
signal.Notify(sigCh, syscall.SIGINT, syscall.SIGTERM)
signal.Notify(sigCh, syscall.SIGINT, syscall.SIGTERM, syscall.SIGQUIT)
var wg sync.WaitGroup
var procs []*proc.ManagedProc