mirror of
https://github.com/browseros-ai/BrowserOS.git
synced 2026-05-17 02:25:57 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user