gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r37881 - libmicrohttpd/src/microhttpd


From: gnunet
Subject: [GNUnet-SVN] r37881 - libmicrohttpd/src/microhttpd
Date: Sun, 4 Sep 2016 18:39:42 +0200

Author: grothoff
Date: 2016-09-04 18:39:42 +0200 (Sun, 04 Sep 2016)
New Revision: 37881

Modified:
   libmicrohttpd/src/microhttpd/test_upgrade_common.c
   libmicrohttpd/src/microhttpd/test_upgrade_ssl.c
Log:
use MHD close

Modified: libmicrohttpd/src/microhttpd/test_upgrade_common.c
===================================================================
--- libmicrohttpd/src/microhttpd/test_upgrade_common.c  2016-09-04 16:38:06 UTC 
(rev 37880)
+++ libmicrohttpd/src/microhttpd/test_upgrade_common.c  2016-09-04 16:39:42 UTC 
(rev 37881)
@@ -60,7 +60,8 @@
   if (-1 == flags)
     return;
   if ((flags & ~O_NONBLOCK) != flags)
-    fcntl (fd, F_SETFL, flags & ~O_NONBLOCK);
+    if (-1 == fcntl (fd, F_SETFL, flags & ~O_NONBLOCK))
+      abort ();
 }
 
 

Modified: libmicrohttpd/src/microhttpd/test_upgrade_ssl.c
===================================================================
--- libmicrohttpd/src/microhttpd/test_upgrade_ssl.c     2016-09-04 16:38:06 UTC 
(rev 37880)
+++ libmicrohttpd/src/microhttpd/test_upgrade_ssl.c     2016-09-04 16:39:42 UTC 
(rev 37881)
@@ -78,7 +78,7 @@
   (void) close (1);
   dup2 (sp[0], 0);
   dup2 (sp[0], 1);
-  close (sp[0]);
+  MHD_socket_close_ (sp[0]);
   sprintf (destination,
            "localhost:%u",
            (unsigned int) port);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]