mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-11-23 12:02:58 -05:00
try another way to kill process on windows
This commit is contained in:
@@ -113,7 +113,11 @@ func CloseAllServers(servers []*exec.Cmd) {
|
||||
Content: "Closing all servers.",
|
||||
})
|
||||
for _, server := range servers {
|
||||
server.Process.Signal(syscall.SIGTERM)
|
||||
if runtime.GOOS == "windows" {
|
||||
server.Process.Kill()
|
||||
} else {
|
||||
server.Process.Signal(syscall.SIGTERM)
|
||||
}
|
||||
}
|
||||
for _, server := range servers {
|
||||
server.Process.Wait()
|
||||
|
||||
Reference in New Issue
Block a user