about summary refs log tree commit diff
path: root/support/xpthread_check_return.c
diff options
context:
space:
mode:
Diffstat (limited to 'support/xpthread_check_return.c')
-rw-r--r--support/xpthread_check_return.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/support/xpthread_check_return.c b/support/xpthread_check_return.c
index 8781ee11a1..398f945590 100644
--- a/support/xpthread_check_return.c
+++ b/support/xpthread_check_return.c
@@ -21,6 +21,7 @@
 #include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
+#include <support/check.h>
 
 void
 xpthread_check_return (const char *function, int value)
@@ -28,7 +29,6 @@ xpthread_check_return (const char *function, int value)
   if (value != 0)
     {
       errno = value;
-      printf ("error: %s: %m\n", function);
-      exit (1);
+      FAIL_EXIT1 ("%s: %m", function);
     }
 }