diff options
author | Damien Miller <djm@mindrot.org> | 2004-06-15 10:35:30 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2004-06-15 10:35:30 +1000 |
commit | 232711f6dbc107711b3957bfa2fd798aec702241 (patch) | |
tree | 2dfcd276712caa022fd8aa2f3c1319c13660fdd7 /channels.c | |
parent | 0e220dbfbcc9fe252e8f1f4890dbfa415aad35db (diff) |
- djm@cvs.openbsd.org 2004/06/14 01:44:39
[channels.c clientloop.c misc.c misc.h packet.c ssh-agent.c ssh-keyscan.c]
[sshd.c]
set_nonblock() instead of fnctl(...,O_NONBLOCK); "looks sane" deraadt@
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/channels.c b/channels.c index 1fb1092c8..97c1fd31b 100644 --- a/channels.c +++ b/channels.c | |||
@@ -39,7 +39,7 @@ | |||
39 | */ | 39 | */ |
40 | 40 | ||
41 | #include "includes.h" | 41 | #include "includes.h" |
42 | RCSID("$OpenBSD: channels.c,v 1.204 2004/06/13 15:03:02 djm Exp $"); | 42 | RCSID("$OpenBSD: channels.c,v 1.205 2004/06/14 01:44:38 djm Exp $"); |
43 | 43 | ||
44 | #include "ssh.h" | 44 | #include "ssh.h" |
45 | #include "ssh1.h" | 45 | #include "ssh1.h" |
@@ -2509,8 +2509,8 @@ connect_to(const char *host, u_short port) | |||
2509 | verbose("socket: %.100s", strerror(errno)); | 2509 | verbose("socket: %.100s", strerror(errno)); |
2510 | continue; | 2510 | continue; |
2511 | } | 2511 | } |
2512 | if (fcntl(sock, F_SETFL, O_NONBLOCK) < 0) | 2512 | if (set_nonblock(sock) == -1) |
2513 | fatal("connect_to: F_SETFL: %s", strerror(errno)); | 2513 | fatal("%s: set_nonblock(%d)", __func__, sock); |
2514 | if (connect(sock, ai->ai_addr, ai->ai_addrlen) < 0 && | 2514 | if (connect(sock, ai->ai_addr, ai->ai_addrlen) < 0 && |
2515 | errno != EINPROGRESS) { | 2515 | errno != EINPROGRESS) { |
2516 | error("connect_to %.100s port %s: %.100s", ntop, strport, | 2516 | error("connect_to %.100s port %s: %.100s", ntop, strport, |