From 8470bf200de094ec362f3f7565ab3ccdf26ee664 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 25 Dec 2008 23:28:35 +0000 Subject: no reasonable commit message possible. tons of changes of the last 2 days --- src/select.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/select.c') diff --git a/src/select.c b/src/select.c index 0d95cfbe4..4af167047 100644 --- a/src/select.c +++ b/src/select.c @@ -32,11 +32,11 @@ int bsc_register_fd(struct bsc_fd *fd) /* make FD nonblocking */ flags = fcntl(fd->fd, F_GETFL); if (flags < 0) - return -1; + return flags; flags |= O_NONBLOCK; flags = fcntl(fd->fd, F_SETFL, flags); if (flags < 0) - return -1; + return flags; /* Register FD */ if (fd->fd > maxfd) -- cgit v1.2.3