| 1954 | } |
| 1955 | |
| 1956 | static void plugin_set_timeout(struct plugin *p) |
| 1957 | { |
| 1958 | /* Don't timeout if they're running a debugger. */ |
| 1959 | if (debugging(p)) |
| 1960 | p->timeout_timer = NULL; |
| 1961 | else { |
| 1962 | p->timeout_timer |
| 1963 | = new_reltimer(p->plugins->ld->timers, p, |
| 1964 | time_from_sec(PLUGIN_STARTUP_TIMEOUT), |
| 1965 | plugin_manifest_timeout, p); |
| 1966 | } |
| 1967 | |
| 1968 | } |
| 1969 | const char *plugin_send_getmanifest(struct plugin *p, const char *cmd_id) |
| 1970 | { |
| 1971 | char **cmd; |
no test coverage detected