From: Bernhard Tittelbach Date: Thu, 17 Jun 2010 02:43:44 +0000 (+0000) Subject: ... X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=b1f577f6108f5211f2522e91e5c6f207c676d13f;p=svn42.git ... --- 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);