summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>2016-02-13 12:33:30 -0800
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>2016-02-13 12:40:11 -0800
commita3506b52199d2ac8dbc358fbb562f700f1d9ded4 (patch)
treec1775ae61d73eb20ce409381ed753d361970d9bc
parentca3d355846c0b9746d2d6892bd0a4c1413b2abab (diff)
aubdump: Raise SIGTRAP on failure
-rw-r--r--tools/aubdump.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/aubdump.c b/tools/aubdump.c
index d9ee79190..6327b87eb 100644
--- a/tools/aubdump.c
+++ b/tools/aubdump.c
@@ -28,6 +28,7 @@
#include <string.h>
#include <stdint.h>
#include <stdbool.h>
+#include <signal.h>
#include <stdarg.h>
#include <fcntl.h>
#include <sys/types.h>
@@ -106,7 +107,7 @@ fail_if(int cond, const char *format, ...)
vfprintf(stderr, format, args);
va_end(args);
- exit(1);
+ raise(SIGTRAP);
}
static inline uint32_t