Author: grothoff Date: 2008-03-02 15:57:32 -0700 (Sun, 02 Mar 2008) New Revision: 6518
Modified: GNUnet/src/applications/bootstrap_http/http.c Log: check Modified: GNUnet/src/applications/bootstrap_http/http.c =================================================================== --- GNUnet/src/applications/bootstrap_http/http.c 2008-03-02 22:33:33 UTC (rev 6517) +++ GNUnet/src/applications/bootstrap_http/http.c 2008-03-02 22:57:32 UTC (rev 6518) @@ -145,6 +145,7 @@ fd_set ws; fd_set es; int max; + int sret; struct timeval tv; int running; struct CURLMsg *msg; @@ -300,7 +301,15 @@ delay in the reaction than hanging... */ tv.tv_sec = 0; tv.tv_usec = 1000; - SELECT (max + 1, &rs, &ws, &es, &tv); + sret = SELECT (max + 1, &rs, &ws, &es, &tv); + if (sret == -1) + { + GNUNET_GE_LOG_STRERROR (ectx, + GNUNET_GE_ERROR | GNUNET_GE_ADMIN | GNUNET_GE_USER | + GNUNET_GE_BULK, + "select"); + goto cleanup; + } if (GNUNET_YES != termTest (targ)) break; do _______________________________________________ GNUnet-SVN mailing list GNUnet-SVN@gnu.org http://lists.gnu.org/mailman/listinfo/gnunet-svn