[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r27583 - libmicrohttpd/doc/examples
From: |
gnunet |
Subject: |
[GNUnet-SVN] r27583 - libmicrohttpd/doc/examples |
Date: |
Tue, 25 Jun 2013 15:00:17 +0200 |
Author: grothoff
Date: 2013-06-25 15:00:17 +0200 (Tue, 25 Jun 2013)
New Revision: 27583
Modified:
libmicrohttpd/doc/examples/sessions.c
Log:
-nicer error handling in example
Modified: libmicrohttpd/doc/examples/sessions.c
===================================================================
--- libmicrohttpd/doc/examples/sessions.c 2013-06-25 12:58:12 UTC (rev
27582)
+++ libmicrohttpd/doc/examples/sessions.c 2013-06-25 13:00:17 UTC (rev
27583)
@@ -12,7 +12,7 @@
#include <microhttpd.h>
#ifdef _WIN32
-int
+static int
asprintf (char **resultp, const char *format, ...)
{
va_list argptr;
@@ -758,7 +758,14 @@
}
else
tvp = NULL;
- select (max + 1, &rs, &ws, &es, tvp);
+ if (-1 == select (max + 1, &rs, &ws, &es, tvp))
+ {
+ if (EINTR != errno)
+ fprintf (stderr,
+ "Aborting due to error during select: %s\n",
+ strerror (errno));
+ break;
+ }
MHD_run (d);
}
MHD_stop_daemon (d);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r27583 - libmicrohttpd/doc/examples,
gnunet <=