Lines Matching refs:iev_main
150 static struct imsgev *iev_main; variable
215 if ((iev_main = malloc(sizeof(struct imsgev))) == NULL) in engine()
218 imsg_init(&iev_main->ibuf, 3); in engine()
219 iev_main->handler = engine_dispatch_main; in engine()
222 iev_main->events = EV_READ; in engine()
223 event_set(&iev_main->ev, iev_main->ibuf.fd, iev_main->events, in engine()
224 iev_main->handler, iev_main); in engine()
225 event_add(&iev_main->ev, NULL); in engine()
240 msgbuf_clear(&iev_main->ibuf.w); in engine_shutdown()
241 close(iev_main->ibuf.fd); in engine_shutdown()
244 free(iev_main); in engine_shutdown()
262 return (imsg_compose_event(iev_main, type, 0, pid, -1, in engine_imsg_compose_main()