From 5cca20ccaa1f326abfffd8084345e35e690ec9b8 Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Fri, 19 Aug 2016 14:58:38 +0000 Subject: [PATCH] MHD_start_daemon_va(): Fixed pipe errors reporting --- src/microhttpd/daemon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index 6f61b71f..a2f7ec7f 100644 --- 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");