Check if all subdaemons exist in specified directory. */
| 505 | |
| 506 | /* Check if all subdaemons exist in specified directory. */ |
| 507 | static bool has_all_subdaemons(const char *daemon_dir) |
| 508 | { |
| 509 | size_t i; |
| 510 | bool missing_daemon = false; |
| 511 | |
| 512 | for (i = 0; i < ARRAY_SIZE(subdaemons); ++i) { |
| 513 | if (!path_is_file(path_join(tmpctx, daemon_dir, subdaemons[i]))) { |
| 514 | missing_daemon = true; |
| 515 | break; |
| 516 | } |
| 517 | } |
| 518 | |
| 519 | return !missing_daemon; |
| 520 | } |
| 521 | |
| 522 | /* Returns the directory this executable is running from */ |
| 523 | static const char *find_my_directory(const tal_t *ctx, const char *argv0) |
no test coverage detected