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

Function on_sigterm

lightningd/lightningd.c:777–782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

775}
776
777static void on_sigterm(int _ UNUSED)
778{
779 static const char *msg = "lightningd: SIGTERM caught, exiting.\n";
780 write_all(STDERR_FILENO, msg, strlen(msg));
781 _exit(1);
782}
783
784/* Globals are terrible, but we all do it. */
785static int sigchld_wfd;

Callers

nothing calls this directly

Calls 1

write_allFunction · 0.50

Tested by

no test coverage detected