diff options
author | Sadie Powell <sadie@witchery.services> | 2021-02-01 18:10:53 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2021-02-01 18:10:53 +0000 |
commit | aa4c7489b708eb54856871ecdf2bbde99fde92bc (patch) | |
tree | 21558052ff2f8c6062707920455ea425974379c7 /win/inspircd_win32wrapper.h | |
parent | 5b21a60a9d96827d6822c56b2dfdf08dbce5867f (diff) |
Duplicate the stdout file handle when used for logging.
Failure to do this may result in a crash on shutdown when started
in debug mode.
Diffstat (limited to 'win/inspircd_win32wrapper.h')
-rw-r--r-- | win/inspircd_win32wrapper.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/win/inspircd_win32wrapper.h b/win/inspircd_win32wrapper.h index 7366fc336..368504d61 100644 --- a/win/inspircd_win32wrapper.h +++ b/win/inspircd_win32wrapper.h @@ -102,6 +102,8 @@ typedef SSIZE_T ssize_t; #define popen _popen #define pclose _pclose #define getpid _getpid +#define dup _dup +#define fdopen _fdopen // warning: 'identifier' : class 'type' needs to have dll-interface to be used by clients of class 'type2' // Normally, this is a huge problem, but due to our new/delete remap, we can ignore it. |