libsoup3: update to 3.6.0; fix GTK2/3 app startup
[oi-userland.git] / components / network / qbittorrent / patches / 03-rlimit.patch
blob75f77cbb7d6678174e8c32672cfe05792d4b2fe9
1 diff -Nru qbittorrent-4.5.0.orig/src/app/application.cpp qbittorrent-4.5.0/src/app/application.cpp
2 --- qbittorrent-4.5.0.orig/src/app/application.cpp 2023-01-14 20:42:09.101483950 +0000
3 +++ qbittorrent-4.5.0/src/app/application.cpp 2023-01-14 20:51:56.094149358 +0000
4 @@ -1036,11 +1036,11 @@
5 // has no effect on linux but it might be meaningful for other OS
6 rlimit limit {};
8 - if (::getrlimit(RLIMIT_RSS, &limit) != 0)
9 + if (::getrlimit(RLIMIT_VMEM, &limit) != 0)
10 return;
12 limit.rlim_cur = memoryWorkingSetLimit() * MiB;
13 - if (::setrlimit(RLIMIT_RSS, &limit) != 0)
14 + if (::setrlimit(RLIMIT_VMEM, &limit) != 0)
16 const auto message = QString::fromLocal8Bit(strerror(errno));
17 LogMsg(logMessage.arg(QString::number(errno), message), Log::WARNING);