| 48 | } |
| 49 | |
| 50 | void status_setup_sync(int fd) |
| 51 | { |
| 52 | assert(status_fd == -1); |
| 53 | assert(!status_conn); |
| 54 | status_fd = fd; |
| 55 | setup_logging_sighandler(); |
| 56 | |
| 57 | /* Send version now. */ |
| 58 | status_send(take(towire_status_version(NULL, version()))); |
| 59 | } |
| 60 | |
| 61 | static void destroy_daemon_conn(struct daemon_conn *dc UNUSED) |
| 62 | { |