[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r9486 - libmicrohttpd/src/daemon
From: |
gnunet |
Subject: |
[GNUnet-SVN] r9486 - libmicrohttpd/src/daemon |
Date: |
Fri, 13 Nov 2009 05:12:29 -0700 |
Author: grothoff
Date: 2009-11-13 05:12:29 -0700 (Fri, 13 Nov 2009)
New Revision: 9486
Modified:
libmicrohttpd/src/daemon/daemon_test.c
Log:
check return code
Modified: libmicrohttpd/src/daemon/daemon_test.c
===================================================================
--- libmicrohttpd/src/daemon/daemon_test.c 2009-11-13 12:05:52 UTC (rev
9485)
+++ libmicrohttpd/src/daemon/daemon_test.c 2009-11-13 12:12:29 UTC (rev
9486)
@@ -105,7 +105,11 @@
{
maxfd = 0;
FD_ZERO (&rs);
- MHD_get_fdset (d, &rs, &rs, &rs, &maxfd);
+ if (MHD_YES != MHD_get_fdset (d, &rs, &rs, &rs, &maxfd))
+ {
+ MHD_stop_daemon (d);
+ return 256;
+ }
if (MHD_run (d) == MHD_NO)
{
MHD_stop_daemon (d);
@@ -152,7 +156,7 @@
int
main (int argc, char *const *argv)
{
- unsigned int errorCount = 0;
+ int errorCount = 0;
errorCount += testStartError ();
errorCount += testStartStop ();
errorCount += testExternalRun ();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r9486 - libmicrohttpd/src/daemon,
gnunet <=