From b1f577f6108f5211f2522e91e5c6f207c676d13f Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Thu, 17 Jun 2010 02:43:44 +0000 Subject: [PATCH] ... --- serial_console/usocket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serial_console/usocket.c b/serial_console/usocket.c index 5c90061..c87b265 100644 --- a/serial_console/usocket.c +++ b/serial_console/usocket.c @@ -94,7 +94,7 @@ int main(int argc, char* argv[]) quit_on_eof_=0; socket_fd = establish_socket_connection(socket_file); - if(socket_fd) + if(socket_fd > 0) { fcntl(STDIN_FILENO, F_SETFL, O_NONBLOCK); connect_terminal(socket_fd); -- 1.7.10.4