| 699 | } |
| 700 | |
| 701 | static bool debugging(struct lightningd *ld, const char *name) |
| 702 | { |
| 703 | if (ld->dev_debug_subprocess == NULL) |
| 704 | return false; |
| 705 | return strends(name, ld->dev_debug_subprocess); |
| 706 | } |
| 707 | |
| 708 | static struct subd *new_subd(const tal_t *ctx, |
| 709 | struct lightningd *ld, |