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

Function is_subdaemon

lightningd/lightningd.c:402–409  ·  view source on GitHub ↗

Return true if called with a recognized subdaemon e.g. "hsmd" */

Source from the content-addressed store, hash-verified

400
401/* Return true if called with a recognized subdaemon e.g. "hsmd" */
402bool is_subdaemon(const char *sdname)
403{
404 for (size_t i = 0; i < ARRAY_SIZE(subdaemons); i++)
405 /* Skip the "lightning_" prefix in the table */
406 if (streq(sdname, subdaemons[i] + strlen("lightning_")))
407 return true;
408 return false;
409}
410
411static void destroy_alt_subdaemons(struct lightningd *ld)
412{

Callers 1

opt_subdaemonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected