parent
19004d9f83
commit
f32818c9e3
@ -1076,7 +1076,11 @@ func execute(attachPid int, processArgs []string, conf *config.Config, coreFile
|
|||||||
var status int
|
var status int
|
||||||
if headless {
|
if headless {
|
||||||
if continueOnStart {
|
if continueOnStart {
|
||||||
client := rpc2.NewClient(listener.Addr().String())
|
addr := listener.Addr().String()
|
||||||
|
if _, isuds := listener.(*net.UnixListener); isuds {
|
||||||
|
addr = "unix:" + addr
|
||||||
|
}
|
||||||
|
client := rpc2.NewClientFromConn(netDial(addr))
|
||||||
client.Disconnect(true) // true = continue after disconnect
|
client.Disconnect(true) // true = continue after disconnect
|
||||||
}
|
}
|
||||||
waitForDisconnectSignal(disconnectChan)
|
waitForDisconnectSignal(disconnectChan)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user