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

Function flush_and_exit

common/status.c:184–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184static NORETURN void flush_and_exit(int reason)
185{
186 /* Don't let it take forever. */
187 alarm(10);
188 if (status_conn)
189 daemon_conn_sync_flush(status_conn);
190
191 exit(0x80 | (reason & 0xFF));
192}
193
194void status_send_fd(int fd)
195{

Callers 1

status_send_fatalFunction · 0.85

Calls 1

daemon_conn_sync_flushFunction · 0.70

Tested by

no test coverage detected