aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-08-19 14:58:38 +0000
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2016-08-19 14:58:38 +0000
commit5cca20ccaa1f326abfffd8084345e35e690ec9b8 (patch)
tree044e4525b8f435608a697346a9f0d670b9d7c398
parent0065f1525de9c3ee6bfec040dfa5fdb1688b7c58 (diff)
downloadlibmicrohttpd-5cca20ccaa1f326abfffd8084345e35e690ec9b8.tar.gz
libmicrohttpd-5cca20ccaa1f326abfffd8084345e35e690ec9b8.zip
MHD_start_daemon_va(): Fixed pipe errors reporting
-rw-r--r--src/microhttpd/daemon.c4
1 files 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,
3778#ifdef HAVE_MESSAGES 3778#ifdef HAVE_MESSAGES
3779 MHD_DLOG (daemon, 3779 MHD_DLOG (daemon,
3780 "Failed to create control pipe: %s\n", 3780 "Failed to create control pipe: %s\n",
3781 MHD_strerror_ (errno)); 3781 MHD_pipe_last_strerror_ ());
3782#endif 3782#endif
3783 free (daemon); 3783 free (daemon);
3784 return NULL; 3784 return NULL;
@@ -3788,7 +3788,7 @@ MHD_start_daemon_va (unsigned int flags,
3788#ifdef HAVE_MESSAGES 3788#ifdef HAVE_MESSAGES
3789 MHD_DLOG (daemon, 3789 MHD_DLOG (daemon,
3790 "Failed to make control pipe non-blocking: %s\n", 3790 "Failed to make control pipe non-blocking: %s\n",
3791 MHD_strerror_ (errno)); 3791 MHD_pipe_last_strerror_ ());
3792#endif 3792#endif
3793 if (0 != MHD_pipe_close_ (daemon->wpipe[0])) 3793 if (0 != MHD_pipe_close_ (daemon->wpipe[0]))
3794 MHD_PANIC ("close failed\n"); 3794 MHD_PANIC ("close failed\n");