MHD_start_daemon_va(): Fixed pipe errors reporting

This commit is contained in:
Evgeny Grin (Karlson2k) committed 2016-08-19 14:58:38 +00:00
1 parent 0065f1525d
commit 5cca20ccaa
1 file changed
+2 -2
+2 -2
View File
@@ -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");