mirror of
https://github.com/coder/coder.git
synced 2025-07-08 11:39:50 +00:00
* fix: Add `SIGHUP` and `SIGTERM` handling to `coder server` To prevent additional signals from aborting program execution, signal handling was moved to the beginning of the main function, this ensures that signals stays registered for the entire shutdown procedure. Fixes #1529
10 lines
100 B
Go
10 lines
100 B
Go
//go:build windows
|
|
|
|
package cli
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
var interruptSignals = []os.Signal{os.Interrupt}
|