diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2012-05-31 09:09:43 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2012-06-01 11:02:35 +0200 |
commit | 58d54740785eb2c7208a01afb5bd9736e5808069 (patch) | |
tree | 19d24c817201842b3781328d5f1a5fb25138a496 /src/signaler.cpp | |
parent | f84ebfdbc64b774b1f00f5b98494e66b8a88fb0b (diff) |
Assertions improved
This patch is replaces generic xs_asserts by errno_assers and
alloc_asserts as appropriate.
It is based on 0MQ patch by Martin Hurton.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/signaler.cpp')
-rw-r--r-- | src/signaler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/signaler.cpp b/src/signaler.cpp index a9db3f2..cf1e0fd 100644 --- a/src/signaler.cpp +++ b/src/signaler.cpp @@ -332,7 +332,7 @@ int xs::signaler_wait (xs::signaler_t *self_, int timeout_) pfd.events = POLLIN; int rc = poll (&pfd, 1, timeout_); if (unlikely (rc < 0)) { - xs_assert (errno == EINTR); + errno_assert (errno == EINTR); return -1; } else if (unlikely (rc == 0)) { @@ -358,7 +358,7 @@ int xs::signaler_wait (xs::signaler_t *self_, int timeout_) int rc = select (self_->r + 1, &self_->fds, NULL, NULL, timeout_ >= 0 ? &timeout : NULL); if (unlikely (rc < 0)) { - xs_assert (errno == EINTR); + errno_assert (errno == EINTR); return -1; } #endif |