libmicrohttpd

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

commit 0c962c0cbc9c12602d032a1b9315bed023505ec6
parent 274b0c248e69e5b6bce8511e1d9a9445c1f6dfc8
Author: Christian Grothoff <christian@grothoff.org>
Date:   Thu,  2 Jun 2016 06:57:12 +0000

-check obscure error on close()

Diffstat:
Msrc/microhttpd/daemon.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c @@ -3848,8 +3848,10 @@ MHD_start_daemon_va (unsigned int flags, "Failed to make control pipe non-blocking: %s\n", MHD_strerror_ (errno)); #endif - MHD_pipe_close_ (daemon->wpipe[0]); - MHD_pipe_close_ (daemon->wpipe[1]); + if (0 != MHD_pipe_close_ (daemon->wpipe[0])) + MHD_PANIC ("close failed\n"); + if (0 != MHD_pipe_close_ (daemon->wpipe[1])) + MHD_PANIC ("close failed\n"); free (daemon); return NULL; }