osquery-1/osquery/main
Teddy Reed d393d12f5c
Refactor and simplify shutdown logic (#6144)
The windows documentation mentions that ExitThread should not be
used in C++ code. When debugging these exit flows I saw exceptions
when running dtors.

When reviewing the shutdown code for Windows and POSIX there was a
lot of complexity. This change allows any part of code to request
a shutdown and simplifies the response.

We should expect the main thread to call ::waitForShutdown.
The exception is the shell, which waits in a repl.
2020-02-10 20:26:45 -05:00
..
harnesses Fix all TLS tests and framework (#6170) 2020-02-03 07:50:25 -08:00
posix Update osquery licensing wording (#5452) 2019-02-19 10:59:48 -08:00
windows Refactor and simplify shutdown logic (#6144) 2020-02-10 20:26:45 -05:00
benchmarks.cpp Update osquery licensing wording (#5452) 2019-02-19 10:59:48 -08:00
BUCK killswitch: Remove killswitch code (#5949) 2019-10-29 19:14:35 -04:00
CMakeLists.txt Fix all TLS tests and framework (#6170) 2020-02-03 07:50:25 -08:00
empty.cpp Update osquery licensing wording (#5452) 2019-02-19 10:59:48 -08:00
main.cpp Refactor and simplify shutdown logic (#6144) 2020-02-10 20:26:45 -05:00
main.h Refactor and simplify shutdown logic (#6144) 2020-02-10 20:26:45 -05:00
tests.cpp Remove folly initialisation routine from osquery/core/init.cpp (#5475) 2019-02-28 05:32:20 -08:00