| 64 | } |
| 65 | |
| 66 | void status_setup_async(struct daemon_conn *master) |
| 67 | { |
| 68 | assert(status_fd == -1); |
| 69 | assert(!status_conn); |
| 70 | status_conn = master; |
| 71 | |
| 72 | tal_add_destructor(master, destroy_daemon_conn); |
| 73 | |
| 74 | setup_logging_sighandler(); |
| 75 | |
| 76 | /* Send version now. */ |
| 77 | status_send(take(towire_status_version(NULL, version()))); |
| 78 | } |
| 79 | |
| 80 | void status_send(const u8 *msg TAKES) |
| 81 | { |
no test coverage detected