| 1681 | } |
| 1682 | |
| 1683 | static void plugin_set_timeout(struct plugin *p) |
| 1684 | { |
| 1685 | bool debug = false; |
| 1686 | |
| 1687 | #if DEVELOPER |
| 1688 | if (p->plugins->ld->dev_debug_subprocess |
| 1689 | && strends(p->cmd, p->plugins->ld->dev_debug_subprocess)) |
| 1690 | debug = true; |
| 1691 | #endif |
| 1692 | |
| 1693 | /* Don't timeout if they're running a debugger. */ |
| 1694 | if (debug) |
| 1695 | p->timeout_timer = NULL; |
| 1696 | else { |
| 1697 | p->timeout_timer |
| 1698 | = new_reltimer(p->plugins->ld->timers, p, |
| 1699 | time_from_sec(PLUGIN_MANIFEST_TIMEOUT), |
| 1700 | plugin_manifest_timeout, p); |
| 1701 | } |
| 1702 | } |
| 1703 | |
| 1704 | const char *plugin_send_getmanifest(struct plugin *p, const char *cmd_id) |
| 1705 | { |
no test coverage detected