X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=fd.c;h=f0e849d1a71509d7a22a994ea77292c929bfd44f;hb=72cc3679948fe7c1f1b74f809a4dd2b949dc1bde;hp=ec174ff69ed768645bd92705d1384b0cc074ea06;hpb=07c25fac868f7122ca38da3cf9bf6637ba18214a;p=paraslash.git diff --git a/fd.c b/fd.c index ec174ff6..f0e849d1 100644 --- a/fd.c +++ b/fd.c @@ -1,19 +1,7 @@ /* * Copyright (C) 2006-2007 Andre Noll * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * Licensed under the GPL v2. For licencing details see COPYING. */ /** \file fd.c helper functions for file descriptor handling */ @@ -63,9 +51,11 @@ int para_select(int n, fd_set *readfds, fd_set *writefds, ret = select(n, readfds, writefds, NULL, timeout_tv); err = errno; } while (ret < 0 && err == EINTR); - if (ret < 0) + if (ret < 0) { PARA_CRIT_LOG("select error: %s, max_fileno: %d\n", strerror(err), n); + ret = -E_SELECT; + } return ret; }