~ This signals to the mainloop that some part wants to cleanly exit now. */
| 858 | |
| 859 | /*~ This signals to the mainloop that some part wants to cleanly exit now. */ |
| 860 | void lightningd_exit(struct lightningd *ld, int exit_code) |
| 861 | { |
| 862 | ld->exit_code = tal(ld, int); |
| 863 | *ld->exit_code = exit_code; |
| 864 | log_debug(ld->log, "io_break: %s", __func__); |
| 865 | io_break(ld); |
| 866 | } |
| 867 | |
| 868 | int main(int argc, char *argv[]) |
| 869 | { |
no test coverage detected