diff options
author | Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com> | 2016-02-13 12:33:30 -0800 |
---|---|---|
committer | Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com> | 2016-02-13 12:40:11 -0800 |
commit | a3506b52199d2ac8dbc358fbb562f700f1d9ded4 (patch) | |
tree | c1775ae61d73eb20ce409381ed753d361970d9bc | |
parent | ca3d355846c0b9746d2d6892bd0a4c1413b2abab (diff) |
aubdump: Raise SIGTRAP on failure
-rw-r--r-- | tools/aubdump.c | 3 |
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 |