| 649 | } |
| 650 | |
| 651 | void connectd_activate(struct lightningd *ld) |
| 652 | { |
| 653 | void *ret; |
| 654 | const u8 *msg = towire_connectd_activate(NULL, ld->listen); |
| 655 | |
| 656 | subd_req(ld->connectd, ld->connectd, take(msg), -1, 0, |
| 657 | connect_activate_done, NULL); |
| 658 | |
| 659 | /* Wait for activate_reply */ |
| 660 | ret = io_loop(NULL, NULL); |
| 661 | log_debug(ld->log, "io_loop: %s", __func__); |
| 662 | assert(ret == ld->connectd); |
| 663 | } |
| 664 | |
| 665 | static struct command_result *json_sendcustommsg(struct command *cmd, |
| 666 | const char *buffer, |