improved error handling
authorChristian Pointner <equinox@realraum.at>
Fri, 5 Jun 2009 15:13:23 +0000 (15:13 +0000)
committerChristian Pointner <equinox@realraum.at>
Fri, 5 Jun 2009 15:13:23 +0000 (15:13 +0000)
door_daemon/door_daemon.c

index da6b3a2..e9c02a1 100644 (file)
@@ -241,6 +241,8 @@ int process_door(read_buffer_t* buffer, int door_fd, cmd_t **cmd_q, client_t* cl
     ret = select(door_fd+1, &fds, NULL, NULL, &tv);
     if(!ret)
       return 0;
+    else if(ret < 0)
+      return ret;
 
     ret = read(door_fd, &buffer->buf[buffer->offset], 1);
     if(!ret)