diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-11-21 13:18:39 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2024-11-21 13:18:39 +0000 |
commit | da796e233a67a0517be79471c0b48a89d010ff98 (patch) | |
tree | de85d092bbb416c332f525dc2c4db68306451abe /usr.sbin/vmd | |
parent | 4efad393769386dddf5775e5943647ffd6ef04e0 (diff) |
Use imsgbuf_queuelen() instead of accessing the w.queue member.
OK tb@
Diffstat (limited to 'usr.sbin/vmd')
-rw-r--r-- | usr.sbin/vmd/proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/vmd/proc.c b/usr.sbin/vmd/proc.c index c864eb57a66..6c3dbd0e4b7 100644 --- a/usr.sbin/vmd/proc.c +++ b/usr.sbin/vmd/proc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: proc.c,v 1.30 2024/11/21 13:17:02 claudio Exp $ */ +/* $OpenBSD: proc.c,v 1.31 2024/11/21 13:18:38 claudio Exp $ */ /* * Copyright (c) 2010 - 2016 Reyk Floeter <reyk@openbsd.org> @@ -687,7 +687,7 @@ imsg_event_add2(struct imsgev *iev, struct event_base *ev_base) } iev->events = EV_READ; - if (iev->ibuf.w.queued) + if (imsgbuf_queuelen(&iev->ibuf) > 0) iev->events |= EV_WRITE; event_del(&iev->ev); |