| 152 | #endif |
| 153 | |
| 154 | int daemon_poll(struct pollfd *fds, nfds_t nfds, int timeout) |
| 155 | { |
| 156 | const char *t; |
| 157 | |
| 158 | t = taken_any(); |
| 159 | if (t) |
| 160 | errx(1, "Outstanding taken pointers: %s", t); |
| 161 | |
| 162 | if (wally_tal_ctx) |
| 163 | errx(1, "Outstanding tal_wally_start!"); |
| 164 | |
| 165 | clean_tmpctx(); |
| 166 | |
| 167 | return poll(fds, nfds, timeout); |
| 168 | } |
| 169 | |
| 170 | void daemon_setup(const char *argv0, |
| 171 | void (*backtrace_print)(const char *fmt, ...), |
no test coverage detected