diff options
author | Ivan Zhakov <ivan@apache.org> | 2019-06-07 16:59:42 +0000 |
---|---|---|
committer | Ivan Zhakov <ivan@apache.org> | 2019-06-07 16:59:42 +0000 |
commit | ea2769e7e5823e662461f45a5827f111fc52122b (patch) | |
tree | f01e9396ce4f770c51429749078bcde2114c9960 /include | |
parent | 54e6f2f0968e89e2e6033fea51d86b2c8c63c3f5 (diff) | |
download | apr-ea2769e7e5823e662461f45a5827f111fc52122b.tar.gz |
Make apr_*_inherit_set() actually work on Windows.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1860783 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include')
-rw-r--r-- | include/arch/win32/apr_arch_inherit.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/arch/win32/apr_arch_inherit.h b/include/arch/win32/apr_arch_inherit.h index 9ed151400..6b0b8e83d 100644 --- a/include/arch/win32/apr_arch_inherit.h +++ b/include/arch/win32/apr_arch_inherit.h @@ -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; \ } |