| 1976 | } |
| 1977 | |
| 1978 | void NORETURN plugin_exit(struct plugin *p, int exitcode) |
| 1979 | { |
| 1980 | p->exiting = true; |
| 1981 | io_conn_out_exclusive(p->stdout_conn, true); |
| 1982 | io_wake(p); |
| 1983 | io_loop(NULL, NULL); |
| 1984 | exit(exitcode); |
| 1985 | } |
| 1986 | |
| 1987 | void NORETURN plugin_errv(struct plugin *p, const char *fmt, va_list ap) |
| 1988 | { |