From 6b6b73806f0c59f322ee1797a92749c2b4136294 Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Tue, 2 Feb 2010 17:00:41 +0100 Subject: CCpp: give up settings limits on the first failure --- lib/Plugins/CCpp.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/Plugins') 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//limits for writing + because it probably means, that the kernel doesn't support it + */ + return 1; + } } return 0; } -- cgit