libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 425660b2e0b2bbe1ccb6b54553207573a9aae2b9
parent ec72716265b31bb157d4638c9d6dca1b2bc88b3a
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri, 13 Nov 2009 12:12:35 +0000

check return code

Diffstat:
Msrc/examples/fileserver_example_external_select.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/examples/fileserver_example_external_select.c b/src/examples/fileserver_example_external_select.c @@ -117,7 +117,8 @@ main (int argc, char *const *argv) FD_ZERO (&rs); FD_ZERO (&ws); FD_ZERO (&es); - MHD_get_fdset (d, &rs, &ws, &es, &max); + if (MHD_YES != MHD_get_fdset (d, &rs, &ws, &es, &max)) + break; /* fatal internal error */ if (MHD_get_timeout (d, &mhd_timeout) == MHD_YES) {