diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2013-11-26 12:00:20 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2013-11-26 12:00:20 +0000 |
commit | a3343ace33ee25b983ace5f86f5d45a2974c6816 (patch) | |
tree | f61133ae9376e836fa0f5be1b61f7eaf83f473b5 /usr.sbin | |
parent | 3536ffb298a32547a6a1503070872df73a273559 (diff) |
msgbuf_write EAGAIN, ok gilles benno
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ripd/ripe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ripd/ripe.c b/usr.sbin/ripd/ripe.c index a7018c925c0..ca6b7a83f7b 100644 --- a/usr.sbin/ripd/ripe.c +++ b/usr.sbin/ripd/ripe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ripe.c,v 1.14 2011/07/04 04:34:14 claudio Exp $ */ +/* $OpenBSD: ripe.c,v 1.15 2013/11/26 12:00:19 henning Exp $ */ /* * Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it> @@ -240,7 +240,7 @@ ripe_dispatch_main(int fd, short event, void *bula) shut = 1; } if (event & EV_WRITE) { - if (msgbuf_write(&ibuf->w) == -1) + if (msgbuf_write(&ibuf->w) == -1 && errno != EAGAIN) fatal("msgbuf_write"); } @@ -318,7 +318,7 @@ ripe_dispatch_rde(int fd, short event, void *bula) shut = 1; } if (event & EV_WRITE) { - if (msgbuf_write(&ibuf->w) == -1) + if (msgbuf_write(&ibuf->w) == -1 && errno != EAGAIN) fatal("msgbuf_write"); } |