mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-26 17:58:19 +03:00
Disable stdout buffering for qbt-nox
The messages printed out via stdout is usually important and short so there is no reason to buffer them. Closes #19984. PR #20018.
This commit is contained in:
parent
c1b63372f1
commit
3f6ca64d9e
1 changed files with 4 additions and 0 deletions
|
@ -99,6 +99,10 @@ void adjustFileDescriptorLimit();
|
|||
// Main
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
#ifdef DISABLE_GUI
|
||||
setvbuf(stdout, nullptr, _IONBF, 0);
|
||||
#endif
|
||||
|
||||
#ifdef Q_OS_UNIX
|
||||
adjustFileDescriptorLimit();
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue