serve: Remove dead store of bytes_read
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
committed by
Keith Winstein
parent
d6ff754a9a
commit
b9763b6997
@@ -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
|
/* If the pty slave is closed, reading from the master can fail with
|
||||||
EIO (see #264). So we treat errors on read() like EOF. */
|
EIO (see #264). So we treat errors on read() like EOF. */
|
||||||
if ( bytes_read <= 0 ) {
|
if ( bytes_read <= 0 ) {
|
||||||
bytes_read = 0;
|
|
||||||
network.start_shutdown();
|
network.start_shutdown();
|
||||||
} else {
|
} else {
|
||||||
string terminal_to_host = terminal.act( string( buf, bytes_read ) );
|
string terminal_to_host = terminal.act( string( buf, bytes_read ) );
|
||||||
|
|||||||
Reference in New Issue
Block a user