MCPcopy Create free account
hub / github.com/ElementsProject/lightning / daemon_poll

Function daemon_poll

common/daemon.c:154–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152#endif
153
154int 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
170void daemon_setup(const char *argv0,
171 void (*backtrace_print)(const char *fmt, ...),

Callers 2

io_poll_lightningdFunction · 0.85
libplugin_pay_pollFunction · 0.85

Calls 3

taken_anyFunction · 0.85
errxFunction · 0.85
clean_tmpctxFunction · 0.85

Tested by

no test coverage detected