diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-12-24 21:19:49 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-12-24 21:19:49 +0000 |
commit | 197b538d47f6e2155979be2221bb5f04aab92c15 (patch) | |
tree | b29d663cfe72420d898abef8299895efe83a3432 /usr.sbin/bgpd | |
parent | 869b5bfa2f6b8579fca18c2fbc126ee80c053fd4 (diff) |
EAGAIN can't happen here anymore
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r-- | usr.sbin/bgpd/session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c index 14b6d35469f..33a9ce14418 100644 --- a/usr.sbin/bgpd/session.c +++ b/usr.sbin/bgpd/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.36 2003/12/24 21:14:22 henning Exp $ */ +/* $OpenBSD: session.c,v 1.37 2003/12/24 21:19:48 henning Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -927,7 +927,7 @@ session_dispatch_msg(struct pollfd *pfd, struct peer *peer) if ((n = read(peer->sock, peer->rbuf->wptr, peer->rbuf->pkt_len - peer->rbuf->read_len)) == -1) { - if (errno != EAGAIN && errno != EINTR) { + if (errno != EINTR) { log_err(peer, "read error"); bgp_fsm(peer, EVNT_CON_FATAL); } |