apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i...@apache.org
Subject svn commit: r1860783 - /apr/apr/trunk/include/arch/win32/apr_arch_inherit.h
Date Fri, 07 Jun 2019 16:59:42 GMT
Author: ivan
Date: Fri Jun  7 16:59:42 2019
New Revision: 1860783

URL: http://svn.apache.org/viewvc?rev=1860783&view=rev
Log:
Make apr_*_inherit_set() actually work on Windows.

Modified:
    apr/apr/trunk/include/arch/win32/apr_arch_inherit.h

Modified: apr/apr/trunk/include/arch/win32/apr_arch_inherit.h
URL: http://svn.apache.org/viewvc/apr/apr/trunk/include/arch/win32/apr_arch_inherit.h?rev=1860783&r1=1860782&r2=1860783&view=diff
==============================================================================
--- apr/apr/trunk/include/arch/win32/apr_arch_inherit.h (original)
+++ apr/apr/trunk/include/arch/win32/apr_arch_inherit.h Fri Jun  7 16:59:42 2019
@@ -24,20 +24,20 @@
 #define APR_IMPLEMENT_INHERIT_SET(name, flag, pool, cleanup)        \
 APR_DECLARE(apr_status_t) apr_##name##_inherit_set(apr_##name##_t *the##name) \
 {                                                                   \
-/*  if (!SetHandleInformation(the##name->filehand,                  \
- *                            HANDLE_FLAG_INHERIT,                  \
- *                            HANDLE_FLAG_INHERIT))                 \
- *      return apr_get_os_error();                                  \
- */ return APR_SUCCESS;                                             \
+    if (!SetHandleInformation(the##name->filehand,                  \
+                              HANDLE_FLAG_INHERIT,                  \
+                              HANDLE_FLAG_INHERIT))                 \
+        return apr_get_os_error();                                  \
+    return APR_SUCCESS;                                             \
 }
 
 #define APR_IMPLEMENT_INHERIT_UNSET(name, flag, pool, cleanup)      \
 APR_DECLARE(apr_status_t) apr_##name##_inherit_unset(apr_##name##_t *the##name)\
 {                                                                   \
-/*  if (!SetHandleInformation(the##name->filehand,                  \
- *                            HANDLE_FLAG_INHERIT, 0))              \
- *      return apr_get_os_error();                                  \
- */ return APR_SUCCESS;                                             \
+    if (!SetHandleInformation(the##name->filehand,                  \
+                              HANDLE_FLAG_INHERIT, 0))              \
+        return apr_get_os_error();                                  \
+    return APR_SUCCESS;                                             \
 }
 
 



Mime
View raw message