Please note that proc.c should be kept identical in relayd, iked and
snmpd (currently without the includes).
ok benno@
-/* $OpenBSD: proc.c,v 1.17 2014/05/08 13:11:16 blambert Exp $ */
+/* $OpenBSD: proc.c,v 1.18 2014/07/12 14:15:04 reyk Exp $ */
/*
* Copyright (c) 2010 - 2014 Reyk Floeter <reyk@openbsd.org>
}
if (event & EV_WRITE) {
- if (msgbuf_write(&ibuf->w) == -1 && errno != EAGAIN)
+ if (msgbuf_write(&ibuf->w) <= 0 && errno != EAGAIN)
fatal(title);
}
-/* $OpenBSD: control.c,v 1.25 2014/06/03 06:25:47 yasuoka Exp $ */
+/* $OpenBSD: control.c,v 1.26 2014/07/12 14:15:04 reyk Exp $ */
/*
* Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>
}
}
if (event & EV_WRITE) {
- if (msgbuf_write(&c->iev.ibuf.w) < 0 && errno != EAGAIN) {
+ if (msgbuf_write(&c->iev.ibuf.w) <= 0 && errno != EAGAIN) {
control_close(c);
return;
}
-/* $OpenBSD: proc.c,v 1.9 2014/05/08 13:04:28 blambert Exp $ */
+/* $OpenBSD: proc.c,v 1.10 2014/07/12 14:15:04 reyk Exp $ */
/*
* Copyright (c) 2010 - 2014 Reyk Floeter <reyk@openbsd.org>
}
if (event & EV_WRITE) {
- if (msgbuf_write(&ibuf->w) == -1 && errno != EAGAIN)
+ if (msgbuf_write(&ibuf->w) <= 0 && errno != EAGAIN)
fatal(title);
}