From 835b293d35a209d38047126443d41fa7090daa4c Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Mon, 19 Jun 2017 21:20:57 +0200 Subject: Use our own variant of 'assert' and 'assert_perror'. Our variants print stack traces on failures. This will make locating errors much easier. --- libthreads/cancel-cond.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libthreads/cancel-cond.c') diff --git a/libthreads/cancel-cond.c b/libthreads/cancel-cond.c index 0cd5f0f1..3aa33f6a 100644 --- a/libthreads/cancel-cond.c +++ b/libthreads/cancel-cond.c @@ -20,7 +20,7 @@ #include #include #include "cthread_internals.h" -#include +#include /* Just like condition_wait, but cancellable. Returns true if cancelled. */ int @@ -37,7 +37,7 @@ hurd_condition_wait (condition_t c, mutex_t m) cproc_t p = cproc_self (); int cancel; - assert (ss->intr_port == MACH_PORT_NULL); /* Sanity check for signal bugs. */ + assert_backtrace (ss->intr_port == MACH_PORT_NULL); /* Sanity check for signal bugs. */ p->state = CPROC_CONDWAIT | CPROC_SWITCHING; -- cgit v1.2.3