| 936 | } |
| 937 | |
| 938 | char *opt_subd_dev_disconnect(const char *optarg, struct lightningd *ld) |
| 939 | { |
| 940 | ld->dev_disconnect_fd = open(optarg, O_RDONLY); |
| 941 | if (ld->dev_disconnect_fd < 0) |
| 942 | return tal_fmt(ld, "Could not open --dev-disconnect=%s: %s", |
| 943 | optarg, strerror(errno)); |
| 944 | return NULL; |
| 945 | } |
| 946 | |
| 947 | /* If test specified that this disconnection should cause permanent failure */ |
| 948 | bool dev_disconnect_permanent(struct lightningd *ld) |
nothing calls this directly
no outgoing calls
no test coverage detected