aboutsummaryrefslogtreecommitdiff
path: root/spawn.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-01-20 16:47:05 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-01-20 16:47:05 +0000
commitc5031be4899ea516635ef7c65a6f82b3b45860b9 (patch)
tree10948eb4aface28e80d6a075fecf11fad3075618 /spawn.c
parentMerge branch 'decset-1047-and-1048' (diff)
parentdebug: rename assert() to xassert(), to avoid clashing with <assert.h> (diff)
Merge branch 'stacktrace'
Diffstat (limited to 'spawn.c')
-rw-r--r--spawn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/spawn.c b/spawn.c
index 6d96cf54..fbcf0952 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[],
@@ -41,7 +41,7 @@ spawn(struct reaper *reaper, const char *cwd, char *const argv[],
(void)!write(pipe_fds[1], &errno, sizeof(errno));
_exit(errno);
}
- assert(false);
+ xassert(false);
_exit(errno);
}