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

Function io_poll_lightningd

lightningd/lightningd.c:749–753  ·  view source on GitHub ↗

~ ccan/io allows overriding the poll() function that is the very core * of the event loop it runs for us. We override it so that we can do * extra sanity checks, and it's also a good point to free the tmpctx. */

Source from the content-addressed store, hash-verified

747 * of the event loop it runs for us. We override it so that we can do
748 * extra sanity checks, and it's also a good point to free the tmpctx. */
749static int io_poll_lightningd(struct pollfd *fds, nfds_t nfds, int timeout)
750{
751 /* These checks and freeing tmpctx are common to all daemons. */
752 return daemon_poll(fds, nfds, timeout);
753}
754
755/*~ Ever had one of those functions which doesn't quite fit anywhere? Me too.
756 * Implementing a generic notifier framework is overkill in a static codebase

Callers

nothing calls this directly

Calls 1

daemon_pollFunction · 0.85

Tested by

no test coverage detected