diff options
Diffstat (limited to 'lib/Plugins')
-rw-r--r-- | lib/Plugins/CCpp.cpp | 8 |
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; } |