1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-09-18 01:33:00 +03:00

Merge pull request #899 from MatAtBread/issue-898

Merge PR #899: Set unbuffered mode for *nix systems stdout, allowing interactive use…
This commit is contained in:
Ilya Shipitsin 2019-04-07 23:52:50 +05:00 committed by GitHub
commit bf8cd35508
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,6 +35,9 @@ int main(int argc, char *argv[])
#ifdef OS_WIN32
SetConsoleTitleA(CEDAR_PRODUCT_STR " VPN Command Line Utility");
#else
// For *nix, disable output buffering to allow for interactive use
setbuf(stdout,NULL);
#endif // OS_WIN32
#if defined(_DEBUG) || defined(DEBUG) // In VC++ compilers, the macro is "_DEBUG", not "DEBUG".