diff options
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/channels.c b/channels.c index a18c7e300..f26b3a65b 100644 --- a/channels.c +++ b/channels.c | |||
@@ -17,7 +17,7 @@ | |||
17 | */ | 17 | */ |
18 | 18 | ||
19 | #include "includes.h" | 19 | #include "includes.h" |
20 | RCSID("$Id: channels.c,v 1.30 2000/05/09 01:02:59 damien Exp $"); | 20 | RCSID("$Id: channels.c,v 1.31 2000/05/17 12:34:23 damien Exp $"); |
21 | 21 | ||
22 | #include "ssh.h" | 22 | #include "ssh.h" |
23 | #include "packet.h" | 23 | #include "packet.h" |
@@ -147,23 +147,6 @@ channel_lookup(int id) | |||
147 | return c; | 147 | return c; |
148 | } | 148 | } |
149 | 149 | ||
150 | void | ||
151 | set_nonblock(int fd) | ||
152 | { | ||
153 | int val; | ||
154 | val = fcntl(fd, F_GETFL, 0); | ||
155 | if (val < 0) { | ||
156 | error("fcntl(%d, F_GETFL, 0): %s", fd, strerror(errno)); | ||
157 | return; | ||
158 | } | ||
159 | if (val & O_NONBLOCK) | ||
160 | return; | ||
161 | debug("fd %d setting O_NONBLOCK", fd); | ||
162 | val |= O_NONBLOCK; | ||
163 | if (fcntl(fd, F_SETFL, val) == -1) | ||
164 | error("fcntl(%d, F_SETFL, O_NONBLOCK): %s", fd, strerror(errno)); | ||
165 | } | ||
166 | |||
167 | /* | 150 | /* |
168 | * Register filedescriptors for a channel, used when allocating a channel or | 151 | * Register filedescriptors for a channel, used when allocating a channel or |
169 | * when the channel consumer/producer is ready, e.g. shell exec'd | 152 | * when the channel consumer/producer is ready, e.g. shell exec'd |