diff options
| author | Craig Barnes <craigbarnes@protonmail.com> | 2021-01-16 20:16:00 +0000 |
|---|---|---|
| committer | Craig Barnes <craigbarnes@protonmail.com> | 2021-01-16 20:16:00 +0000 |
| commit | e56136ce1192d04a52b01ccb41284f0b7896430e (patch) | |
| tree | 10948eb4aface28e80d6a075fecf11fad3075618 /reaper.c | |
| parent | Print stack trace on assert() failure or when calling fatal_error() (diff) | |
debug: rename assert() to xassert(), to avoid clashing with <assert.h>
Diffstat (limited to 'reaper.c')
| -rw-r--r-- | reaper.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -121,7 +121,7 @@ fdm_reap(struct fdm *fdm, int fd, int events, void *data) if (hup && !pollin) return false; - assert(pollin); + xassert(pollin); struct signalfd_siginfo info; ssize_t amount = read(reaper->fd, &info, sizeof(info)); @@ -131,7 +131,7 @@ fdm_reap(struct fdm *fdm, int fd, int events, void *data) return false; } - assert((size_t)amount >= sizeof(info)); + xassert((size_t)amount >= sizeof(info)); if (info.ssi_signo != SIGCHLD) { LOG_WARN("got non-SIGCHLD signal: %d", info.ssi_signo); |
