Axel Belinfante [Wed, 10 Apr 2013 17:32:05 +0000 (19:32 +0200)]
darwin9.c

index 0cb55f5..b09cc68 100644 (file)
--- a/darwin9.c
+++ b/darwin9.c
@@ -349,7 +349,8 @@ int
 set_cpu_limit (unsigned long maxseconds)
 {
     struct rlimit       rl;
+    unsigned long int hardlimit=maxseconds+2;
     rl.rlim_cur = maxseconds;
-    rl.rlim_max = maxseconds;
+    rl.rlim_max = hardlimit;
     return setrlimit (RLIMIT_CPU, &rl);
 }