diff options
Diffstat (limited to 'usr.sbin/ripctl')
-rw-r--r-- | usr.sbin/ripctl/ripctl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ripctl/ripctl.c b/usr.sbin/ripctl/ripctl.c index 7ca78a5588f..dcca2131dc0 100644 --- a/usr.sbin/ripctl/ripctl.c +++ b/usr.sbin/ripctl/ripctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ripctl.c,v 1.11 2013/04/09 14:51:33 gilles Exp $ +/* $OpenBSD: ripctl.c,v 1.12 2013/11/14 20:48:52 deraadt Exp $ * * Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it> * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -27,6 +27,7 @@ #include <net/if_types.h> #include <err.h> +#include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -167,7 +168,7 @@ main(int argc, char *argv[]) } while (ibuf->w.queued) - if (msgbuf_write(&ibuf->w) < 0) + if (msgbuf_write(&ibuf->w) <= 0 && errno != EAGAIN) err(1, "write error"); while (!done) { |