diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2013-11-26 11:32:32 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2013-11-26 11:32:32 +0000 |
commit | cd824103fb1b848460889e9776a04cd3d54b4297 (patch) | |
tree | 7c93a5a33cd3f63728ab79272b5b3a7f6d08dbaf /usr.sbin/dvmrpd/control.c | |
parent | b6ce7dbf3c6f913775c2f544f55d2c9865703b37 (diff) |
deal with msgbuf_write EAGAIN, ok gilles benno
Diffstat (limited to 'usr.sbin/dvmrpd/control.c')
-rw-r--r-- | usr.sbin/dvmrpd/control.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/dvmrpd/control.c b/usr.sbin/dvmrpd/control.c index c3cbde4050f..0bfd1e5311b 100644 --- a/usr.sbin/dvmrpd/control.c +++ b/usr.sbin/dvmrpd/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.17 2013/03/11 17:40:11 deraadt Exp $ */ +/* $OpenBSD: control.c,v 1.18 2013/11/26 11:32:30 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -229,7 +229,7 @@ control_dispatch_imsg(int fd, short event, void *bula) } } if (event & EV_WRITE) { - if (msgbuf_write(&c->iev.ibuf.w) == -1) { + if (msgbuf_write(&c->iev.ibuf.w) == -1 && errno != EAGAIN) { control_close(fd); return; } |