mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 15:36:41 -05:00
change to sigterm
This commit is contained in:
parent
06f75f7fea
commit
35762b7b28
@ -4,11 +4,11 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"runtime"
|
"runtime"
|
||||||
"sync"
|
"sync"
|
||||||
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/golang/protobuf/proto"
|
"github.com/golang/protobuf/proto"
|
||||||
@ -113,7 +113,7 @@ func CloseAllServers(servers []*exec.Cmd) {
|
|||||||
Content: "Closing all servers.",
|
Content: "Closing all servers.",
|
||||||
})
|
})
|
||||||
for _, server := range servers {
|
for _, server := range servers {
|
||||||
server.Process.Signal(os.Interrupt)
|
server.Process.Signal(syscall.SIGTERM)
|
||||||
}
|
}
|
||||||
for _, server := range servers {
|
for _, server := range servers {
|
||||||
server.Process.Wait()
|
server.Process.Wait()
|
||||||
|
Loading…
Reference in New Issue
Block a user