Kaynağa Gözat

MHD_start_daemon_va(): Fixed pipe errors reporting

Evgeny Grin (Karlson2k) 9 yıl önce
ebeveyn
işleme
5cca20ccaa
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      src/microhttpd/daemon.c

+ 2 - 2
src/microhttpd/daemon.c

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