From 58d54740785eb2c7208a01afb5bd9736e5808069 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Thu, 31 May 2012 09:09:43 +0200 Subject: 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 --- src/ctx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ctx.cpp') diff --git a/src/ctx.cpp b/src/ctx.cpp index 6460dd2..7909099 100644 --- a/src/ctx.cpp +++ b/src/ctx.cpp @@ -268,7 +268,7 @@ int xs::ctx_t::terminate () int rc = mailbox_recv (&term_mailbox, &cmd, -1); if (rc == -1 && errno == EINTR) return -1; - xs_assert (rc == 0); + errno_assert (rc == 0); xs_assert (cmd.type == command_t::done); slot_sync.lock (); xs_assert (sockets.empty ()); -- cgit v1.2.3