mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 06:28:03 -06: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:
@@ -104,6 +104,10 @@ void adjustFileDescriptorLimit();
|
|||||||
// Main
|
// Main
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
#ifdef DISABLE_GUI
|
||||||
|
setvbuf(stdout, nullptr, _IONBF, 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef Q_OS_UNIX
|
#ifdef Q_OS_UNIX
|
||||||
adjustFileDescriptorLimit();
|
adjustFileDescriptorLimit();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user