diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-12-04 11:24:34 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-12-04 11:24:34 +0100 |
commit | 1cebd0baa3450d5c1c745874836555df6432e04e (patch) | |
tree | 7eeec9062a3865a937a21ec9b9196b9409906bdc /mach-defpager | |
parent | c36e6bbe9366b30c5b072997698e4e78947b446f (diff) | |
download | hurd-1cebd0baa3450d5c1c745874836555df6432e04e.tar.gz hurd-1cebd0baa3450d5c1c745874836555df6432e04e.tar.bz2 hurd-1cebd0baa3450d5c1c745874836555df6432e04e.zip |
mach-defpager: assert_backtrace() on panic
instead of just exiting: better print a backtrace so we get to know what
happened.
Diffstat (limited to 'mach-defpager')
-rw-r--r-- | mach-defpager/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mach-defpager/main.c b/mach-defpager/main.c index 69f83a58..e733318c 100644 --- a/mach-defpager/main.c +++ b/mach-defpager/main.c @@ -43,6 +43,7 @@ #include <hurd/port.h> #include <hurd/fd.h> #include <hurd/paths.h> +#include <assert-backtrace.h> /* XXX */ #include "default_pager.h" @@ -197,5 +198,5 @@ panic (const char *fmt, ...) va_start (ap, fmt); vfprintf (stderr, fmt, ap); va_end (ap); - exit (3); + assert_backtrace (0); } |