Enable the default-on led trigger
[openwrt.git] / package / dropbear / patches / 160-tty_close.patch
1 Index: dropbear-0.50/common-channel.c
2 ===================================================================
3 --- dropbear-0.50.orig/common-channel.c 2007-08-10 23:47:47.000000000 +0200
4 +++ dropbear-0.50/common-channel.c 2007-08-10 23:47:50.000000000 +0200
5 @@ -311,10 +311,10 @@
6 send_msg_channel_eof(channel);
7 }
8
9 - /* And if we can't receive any more data from them either, close up */
10 + /* And if we can't receive any more data from them either, close up (server only) */
11 if (!channel->sent_close
12 && channel->readfd == FD_CLOSED
13 - && (ERRFD_IS_WRITE(channel) || channel->errfd == FD_CLOSED)
14 + && !ERRFD_IS_WRITE(channel)
15 && !write_pending(channel)) {
16 TRACE(("sending close, readfd is closed"))
17 send_msg_channel_close(channel);
This page took 0.042322 seconds and 5 git commands to generate.