Skip to content

Commit f32818c

Browse files
authored
cmd/dlv: fix --continue with unix domain sockets (#3658)
Fixes #3657
1 parent 19004d9 commit f32818c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmd/dlv/cmds/commands.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,11 @@ func execute(attachPid int, processArgs []string, conf *config.Config, coreFile
10761076
var status int
10771077
if headless {
10781078
if continueOnStart {
1079-
client := rpc2.NewClient(listener.Addr().String())
1079+
addr := listener.Addr().String()
1080+
if _, isuds := listener.(*net.UnixListener); isuds {
1081+
addr = "unix:" + addr
1082+
}
1083+
client := rpc2.NewClientFromConn(netDial(addr))
10801084
client.Disconnect(true) // true = continue after disconnect
10811085
}
10821086
waitForDisconnectSignal(disconnectChan)

0 commit comments

Comments
 (0)