Use _Exit instead of exit under Linux (#204)

The best ExitProcess alternative for Linux is _Exit since it doesn't
call exit handlers.
This commit is contained in:
Timothy Redaelli 2022-09-08 17:05:31 +02:00 committed by GitHub
parent 6cdb6eed17
commit f032088902
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View file

@ -47,6 +47,8 @@
#if BOOST_OS_WINDOWS
#define exit(__c) ExitProcess(__c)
#else
#define exit(__c) _Exit(__c)
#endif
#if BOOST_OS_LINUX || BOOST_OS_MACOS