summaryrefslogtreecommitdiff
path: root/perf/inproc_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/inproc_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/inproc_thr.cpp')
-rw-r--r--perf/inproc_thr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/perf/inproc_thr.cpp b/perf/inproc_thr.cpp
index 91f1df4..570d87e 100644
--- a/perf/inproc_thr.cpp
+++ b/perf/inproc_thr.cpp
@@ -55,7 +55,7 @@ static void *worker (void *ctx_)
}
rc = xs_connect (s, "inproc://thr_test");
- if (rc != 0) {
+ if (rc == -1) {
printf ("error in xs_connect: %s\n", xs_strerror (errno));
exit (1);
}
@@ -134,7 +134,7 @@ int main (int argc, char *argv [])
}
rc = xs_bind (s, "inproc://thr_test");
- if (rc != 0) {
+ if (rc == -1) {
printf ("error in xs_bind: %s\n", xs_strerror (errno));
return -1;
}