commit - 3b8fb9520f899be7cb492c652afa0cdce28e350e
commit + 90270f794c7f4e1ce2b58c8b5bfdc190df4799b6
blob - 36ce2515faf1ac5c49de622315565ce78955f76b
blob + 00d1d81a42f9598ad0cba57a03f07fb868556714
--- gotd/gotd.c
+++ gotd/gotd.c
kill_auth_proc(client);
kill_session_proc(client);
- idisconnect.client_id = client->id;
if (proc) {
- if (gotd_imsg_compose_event(&proc->iev,
- GOTD_IMSG_DISCONNECT, PROC_GOTD, -1,
- &idisconnect, sizeof(idisconnect)) == -1)
- log_warn("imsg compose DISCONNECT");
-
+ event_del(&proc->iev.ev);
msgbuf_clear(&proc->iev.ibuf.w);
close(proc->iev.ibuf.fd);
kill_proc(proc, 0);
proc = NULL;
}
+ idisconnect.client_id = client->id;
if (gotd_imsg_compose_event(&listen_proc->iev,
GOTD_IMSG_DISCONNECT, PROC_GOTD, -1,
&idisconnect, sizeof(idisconnect)) == -1)