libmicrohttpd

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

commit 5cca20ccaa1f326abfffd8084345e35e690ec9b8
parent 0065f1525de9c3ee6bfec040dfa5fdb1688b7c58
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Fri, 19 Aug 2016 14:58:38 +0000

MHD_start_daemon_va(): Fixed pipe errors reporting

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

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