aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVesa Halttunen <vesa.halttunen@nokia.com>2010-12-31 11:24:26 +0200
committerVesa Halttunen <vesa.halttunen@nokia.com>2010-12-31 13:45:18 +0200
commit28415b1f23cd3a5c51830b43b3836d1e355b4aff (patch)
tree8f4c410a617cc282265c1ff5686e8e9b5e92f6ab
parent096b2200baebf35df115f4fb951907ffde464400 (diff)
Fixes: NB#210560 - probably wrong OOM settings for mapplicationextensionrunner
Bug: NB#210560 - probably wrong OOM settings for mapplicationextensionrunner RevBy: TrustMe
-rw-r--r--mapplicationextensionrunner/main.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/mapplicationextensionrunner/main.cpp b/mapplicationextensionrunner/main.cpp
index a5736794..a6e19b44 100644
--- a/mapplicationextensionrunner/main.cpp
+++ b/mapplicationextensionrunner/main.cpp
@@ -31,6 +31,7 @@
#include <QApplication>
#include <QStringList>
#include <QProcess>
+#include <QFile>
#include "mapplicationextensionrunner.h"
#include <MApplication>
@@ -79,6 +80,12 @@ public:
*/
int main(int argc, char **argv)
{
+ // Set the out of memory adjustment value
+ QFile file("/proc/self/oom_adj");
+ file.open(QIODevice::WriteOnly);
+ file.write("-1");
+ file.close();
+
// Check for correct number of arguments
if (argc != 3) {
mWarning("MApplicationExtensionRunner") << "Invalid number of arguments";