add graceful process termination on windows (#82)
This commit is contained in:
committed by
GitHub
parent
84e2c07a7e
commit
4c3aa40564
9
proxy/process_stop.go
Normal file
9
proxy/process_stop.go
Normal file
@@ -0,0 +1,9 @@
|
||||
//go:build !windows
|
||||
|
||||
package proxy
|
||||
|
||||
import "syscall"
|
||||
|
||||
func (p *Process) terminateProcess() error {
|
||||
return p.cmd.Process.Signal(syscall.SIGTERM)
|
||||
}
|
||||
Reference in New Issue
Block a user