| 1966 | } |
| 1967 | |
| 1968 | void NORETURN plugin_exit(struct plugin *p, int exitcode) |
| 1969 | { |
| 1970 | p->exiting = true; |
| 1971 | io_conn_out_exclusive(p->stdout_conn, true); |
| 1972 | io_wake(p); |
| 1973 | io_loop(NULL, NULL); |
| 1974 | exit(exitcode); |
| 1975 | } |
| 1976 | |
| 1977 | void NORETURN plugin_errv(struct plugin *p, const char *fmt, va_list ap) |
| 1978 | { |