diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-01-03 13:09:19 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-01-03 13:09:19 +0000 |
commit | 2eba47766cf16a9ccd14e0a9bb97b8e835ed3b78 (patch) | |
tree | 15ef6fd12e62f7971a4afcdfaea2f8324d5037a5 /usr.sbin/bgpd | |
parent | b463b5215a4f8f35eec0ebb66d143224b4524a4f (diff) |
No need to check the poll fds in case of EINTR. OK dlg@
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r-- | usr.sbin/bgpd/rde.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c index 4f71ee87c21..c5e1db49388 100644 --- a/usr.sbin/bgpd/rde.c +++ b/usr.sbin/bgpd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.185 2005/12/30 11:22:23 claudio Exp $ */ +/* $OpenBSD: rde.c,v 1.186 2006/01/03 13:09:18 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -216,9 +216,11 @@ rde_main(struct bgpd_config *config, struct peer *peer_l, i++; } - if (poll(pfd, i, INFTIM) == -1) + if (poll(pfd, i, INFTIM) == -1) { if (errno != EINTR) fatal("poll error"); + continue; + } if ((pfd[PFD_PIPE_MAIN].revents & POLLOUT) && ibuf_main->w.queued) |