summaryrefslogtreecommitdiffstats
path: root/lib/Plugins
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2010-02-02 17:00:41 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2010-02-02 17:00:41 +0100
commit6b6b73806f0c59f322ee1797a92749c2b4136294 (patch)
treeeb1bb72028245cb7c9d249044ce5dae366d6623c /lib/Plugins
parentbf53954d6aa9f1d107efe8649d174f8e92c4592e (diff)
downloadabrt-6b6b73806f0c59f322ee1797a92749c2b4136294.tar.gz
abrt-6b6b73806f0c59f322ee1797a92749c2b4136294.tar.xz
abrt-6b6b73806f0c59f322ee1797a92749c2b4136294.zip
CCpp: give up settings limits on the first failure
Diffstat (limited to 'lib/Plugins')
-rw-r--r--lib/Plugins/CCpp.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Plugins/CCpp.cpp b/lib/Plugins/CCpp.cpp
index 0adfc7c0..b0c5a758 100644
--- a/lib/Plugins/CCpp.cpp
+++ b/lib/Plugins/CCpp.cpp
@@ -827,6 +827,14 @@ static int set_limits()
log("warning: can't write limit to: %s", limits_name);
close(fd);
}
+ else
+ {
+ /*
+ give up when we failed to open /proc/<pid>/limits for writing
+ because it probably means, that the kernel doesn't support it
+ */
+ return 1;
+ }
}
return 0;
}