...
authorBernhard Tittelbach <xro@realraum.at>
Thu, 17 Jun 2010 02:43:44 +0000 (02:43 +0000)
committerBernhard Tittelbach <xro@realraum.at>
Thu, 17 Jun 2010 02:43:44 +0000 (02:43 +0000)
serial_console/usocket.c

index 5c90061..c87b265 100644 (file)
@@ -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);