Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions internal/dev/dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,18 @@ func KillProjectServer(projectServerCmd *exec.Cmd) {
projectServerCmd.Wait()
ch <- struct{}{}
}()
projectServerCmd.Process.Signal(syscall.SIGTERM)

if projectServerCmd.Process != nil {
// Try SIGINT first (Ctrl+C equivalent)
projectServerCmd.Process.Signal(syscall.SIGINT)
}

// Wait a bit longer for SIGTERM to take effect
select {
case <-ch:
return
case <-time.After(time.Second * 5):
// this will kill the process group not just the parent process
case <-time.After(time.Second * 3):
// If neither signal worked, use the platform-specific kill
util.ProcessKill(projectServerCmd)
close(ch)
}
Expand Down
Loading