From: Christian Pointner Date: Fri, 5 Jun 2009 15:13:23 +0000 (+0000) Subject: improved error handling X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=a037f5b9c6d8e1074d354d8fa14fd36f6dace6c3;p=svn42.git improved error handling --- diff --git a/door_daemon/door_daemon.c b/door_daemon/door_daemon.c index da6b3a2..e9c02a1 100644 --- a/door_daemon/door_daemon.c +++ b/door_daemon/door_daemon.c @@ -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)