diff options
Diffstat (limited to 'trace-cmd.c')
| -rw-r--r-- | trace-cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trace-cmd.c b/trace-cmd.c index 1869c1e..9214ee1 100644 --- a/trace-cmd.c +++ b/trace-cmd.c | |||
| @@ -949,7 +949,7 @@ static void connect_port(int cpu) | |||
| 949 | rp->ai_protocol); | 949 | rp->ai_protocol); |
| 950 | if (sfd == -1) | 950 | if (sfd == -1) |
| 951 | continue; | 951 | continue; |
| 952 | if (connect(sfd, rp->ai_addr, rp->ai_addrlen) != 1) | 952 | if (connect(sfd, rp->ai_addr, rp->ai_addrlen) != -1) |
| 953 | break; | 953 | break; |
| 954 | close(sfd); | 954 | close(sfd); |
| 955 | } | 955 | } |
