leveldb/util
Dylan K. Taylor 68d14a723a
Prevent handle used for LOG from being inherited by subprocesses
I recently encountered a problem with this because Windows doesn't allow
files to be deleted when there's open handles to them.

Other files opened by leveldb are not affected because by and large they
are using CreateFileA, which does not allow inheritance when
lpSecurityAttributes is null (ref:
https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilea)

However, fopen() _does_ allow inheritance, and it needs to be expressly
disabled.
https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/fopen-wfopen?view=msvc-160
2021-10-09 16:22:08 +01:00
..
arena_test.cc Internal change. 2019-12-02 11:44:39 -08:00
arena.cc Correct class/structure declaration order. 2019-05-03 09:48:57 -07:00
arena.h Correct class/structure declaration order. 2019-05-03 09:48:57 -07:00
bloom_test.cc Add some std:: qualifiers to types and functions. 2020-04-29 22:33:14 +00:00
bloom.cc Switch to using C++ 11 override specifier. 2019-05-09 14:11:06 -07:00
cache_test.cc change const to constexpr 2020-04-28 00:17:51 +00:00
cache.cc Add some std:: qualifiers to types and functions. 2020-04-29 22:33:14 +00:00
coding_test.cc Internal change. 2019-12-02 11:44:39 -08:00
coding.cc unsigned char -> uint8_t 2019-05-28 15:44:32 -07:00
coding.h Remove leveldb::port::kLittleEndian. 2020-04-14 01:10:05 +00:00
comparator.cc Style cleanup. 2019-05-04 17:42:20 -07:00
crc32c_test.cc Internal change. 2019-12-02 11:44:39 -08:00
crc32c.cc Switch from C headers to C++ headers. 2020-04-29 20:51:13 +00:00
crc32c.h Switch from C headers to C++ headers. 2020-04-29 20:51:13 +00:00
env_posix_test_helper.h Limit the number of read-only files the POSIX Env will have open. 2017-01-04 09:13:20 -08:00
env_posix_test.cc Fix accidental double std:: qualifiers. 2020-04-30 01:20:50 +00:00
env_posix.cc Add Env::Remove{File,Dir} which obsolete Env::Delete{File,Dir}. 2020-01-09 09:18:14 -08:00
env_test.cc Remove Windows workarounds in some tests. 2020-01-14 18:31:37 -08:00
env_windows_test_helper.h Switch corruption_test to use InMemEnv. 2019-03-20 13:57:03 -07:00
env_windows_test.cc Add some std:: qualifiers to types and functions. 2020-04-29 22:33:14 +00:00
env_windows.cc Prevent handle used for LOG from being inherited by subprocesses 2021-10-09 16:22:08 +01:00
env.cc Add some std:: qualifiers to types and functions. 2020-04-29 22:33:14 +00:00
filter_policy.cc Format all files IAW the Google C++ Style Guide. 2019-05-02 19:04:50 -07:00
hash_test.cc Internal change. 2019-12-02 11:44:39 -08:00
hash.cc Switch from C headers to C++ headers. 2020-04-29 20:51:13 +00:00
hash.h Switch from C headers to C++ headers. 2020-04-29 20:51:13 +00:00
histogram.cc Add some std:: qualifiers to types and functions. 2020-04-29 22:33:14 +00:00
histogram.h Correct class/structure declaration order. 2019-05-03 09:48:57 -07:00
logging_test.cc Internal change. 2019-12-02 11:44:39 -08:00
logging.cc Add some std:: qualifiers to types and functions. 2020-04-29 22:33:14 +00:00
logging.h Switch from C headers to C++ headers. 2020-04-29 20:51:13 +00:00
mutexlock.h Format all files IAW the Google C++ Style Guide. 2019-05-02 19:04:50 -07:00
no_destructor_test.cc Internal change. 2019-12-02 11:44:39 -08:00
no_destructor.h Format all files IAW the Google C++ Style Guide. 2019-05-02 19:04:50 -07:00
options.cc Format all files IAW the Google C++ Style Guide. 2019-05-02 19:04:50 -07:00
posix_logger.h Add some std:: qualifiers to types and functions. 2020-04-29 22:33:14 +00:00
random.h Switch from C headers to C++ headers. 2020-04-29 20:51:13 +00:00
status_test.cc Internal change. 2019-12-02 11:44:39 -08:00
status.cc Add some std:: qualifiers to types and functions. 2020-04-29 22:33:14 +00:00
testutil.cc Switch testing harness to googletest. 2019-11-21 13:11:40 -08:00
testutil.h Internal change. 2019-12-02 11:44:39 -08:00
windows_logger.h Add some std:: qualifiers to types and functions. 2020-04-29 22:33:14 +00:00