From a037f5b9c6d8e1074d354d8fa14fd36f6dace6c3 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 5 Jun 2009 15:13:23 +0000 Subject: [PATCH] improved error handling --- door_daemon/door_daemon.c | 2 ++ 1 file changed, 2 insertions(+) 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) -- 1.7.10.4