diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-12-24 21:14:23 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-12-24 21:14:23 +0000 |
commit | 869b5bfa2f6b8579fca18c2fbc126ee80c053fd4 (patch) | |
tree | 20e110c4708c91f3e9cfbe5b05eca344d80fcd1e /usr.sbin/bgpd/session.c | |
parent | 3100f382e2df89eb7e4dba4bce06bcbddd4e9fe4 (diff) |
no O_NONBLOCK for routing and tcp sockets, theo
Diffstat (limited to 'usr.sbin/bgpd/session.c')
-rw-r--r-- | usr.sbin/bgpd/session.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c index 3db86290467..14b6d35469f 100644 --- a/usr.sbin/bgpd/session.c +++ b/usr.sbin/bgpd/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.35 2003/12/24 20:09:57 henning Exp $ */ +/* $OpenBSD: session.c,v 1.36 2003/12/24 21:14:22 henning Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -115,10 +115,6 @@ setup_listener(void) close(fd); return (-1); } - if (fcntl(fd, F_SETFL, O_NONBLOCK) == -1) { - close(fd); - return (-1); - } return (fd); } @@ -688,12 +684,6 @@ session_connect(struct peer *peer) return (-1); } - if (fcntl(peer->sock, F_SETFL, O_NONBLOCK) == -1) { - log_err(peer, "session_connect fcntl"); - bgp_fsm(peer, EVNT_CON_OPENFAIL); - return (-1); - } - if (session_setup_socket(peer)) { bgp_fsm(peer, EVNT_CON_OPENFAIL); return (-1); |