(process *os.Process)
| 355 | } |
| 356 | |
| 357 | func shutdownVPNKit(process *os.Process) { |
| 358 | if process == nil { |
| 359 | return |
| 360 | } |
| 361 | |
| 362 | if err := process.Kill(); err != nil { |
| 363 | log.Println(err) |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | // createListenSocket creates a new unix domain socket and returns the open file |
| 368 | func createListenSocket(path string) (*os.File, error) { |