summaryrefslogtreecommitdiff
path: root/perf/remote_thr.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2012-04-21 07:07:57 +0200
committerMartin Sustrik <sustrik@250bpm.com>2012-04-21 07:07:57 +0200
commit36fd87810274329c8cd86344b95a0521541e7bab (patch)
treeec183c7dd3a9b1de3361e7211cbffc960d139cf1 /perf/remote_thr.cpp
parentd26e86aa0afc3ec2534eacb4131aee8f6805c36a (diff)
xs_shutdown implemented
This patch allows for partial shutdown of the socket. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'perf/remote_thr.cpp')
-rw-r--r--perf/remote_thr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/perf/remote_thr.cpp b/perf/remote_thr.cpp
index fe4bbfa..b93c4d7 100644
--- a/perf/remote_thr.cpp
+++ b/perf/remote_thr.cpp
@@ -60,7 +60,7 @@ int main (int argc, char *argv [])
// For example XS_RATE, XS_RECOVERY_IVL and XS_MCAST_LOOP for PGM.
rc = xs_connect (s, connect_to);
- if (rc != 0) {
+ if (rc == -1) {
printf ("error in xs_connect: %s\n", xs_strerror (errno));
return -1;
}