aboutsummaryrefslogtreecommitdiff
path: root/spawn.c
diff options
context:
space:
mode:
authorCraig Barnes <craigbarnes@protonmail.com>2021-01-15 20:39:45 +0000
committerCraig Barnes <craigbarnes@protonmail.com>2021-01-16 19:56:33 +0000
commit22f25a9e4feddbc093ae01cd53bdda3c2c3a82e9 (patch)
tree4d0c9bce90d0f0d04c22e9f88b52f910695cfaf6 /spawn.c
parentMerge branch 'decset-1047-and-1048' (diff)
Print stack trace on assert() failure or when calling fatal_error()
Note: this uses the __sanitizer_print_stack_trace() function from the AddressSanitizer runtime, so it only works when AddressSanitizer is in use.
Diffstat (limited to 'spawn.c')
-rw-r--r--spawn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/spawn.c b/spawn.c
index 6d96cf54..e0d95985 100644
--- a/spawn.c
+++ b/spawn.c
@@ -2,7 +2,6 @@
#include <unistd.h>
#include <errno.h>
-#include <assert.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -11,6 +10,7 @@
#define LOG_MODULE "spawn"
#define LOG_ENABLE_DBG 0
#include "log.h"
+#include "debug.h"
bool
spawn(struct reaper *reaper, const char *cwd, char *const argv[],