From b9763b69972c0c01793d6731430d83b963859541 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Sat, 26 Jan 2013 14:34:22 -0500 Subject: [PATCH] serve: Remove dead store of bytes_read Signed-off-by: Anders Kaseorg --- src/frontend/mosh-server.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/frontend/mosh-server.cc b/src/frontend/mosh-server.cc index 116d4b0..e16b8d8 100644 --- a/src/frontend/mosh-server.cc +++ b/src/frontend/mosh-server.cc @@ -633,7 +633,6 @@ void serve( int host_fd, Terminal::Complete &terminal, ServerConnection &network /* If the pty slave is closed, reading from the master can fail with EIO (see #264). So we treat errors on read() like EOF. */ if ( bytes_read <= 0 ) { - bytes_read = 0; network.start_shutdown(); } else { string terminal_to_host = terminal.act( string( buf, bytes_read ) );