On Sat Mar 26 2005 at 03:12, George A. Theall wrote:
> Looks like a bug (in nessus-libraries/libnessus/popen.c) --
> HP/UX doesn't support setting hard limits for the process
> data segment or stack to RLIM_INFINITY; eg,
> <http://docs.hp.com/en/B2355-60105/getrlimit.2.html>.
It seems that lowering the limit to something like 1 GB still produce
this error.
So I will probably not commit this patch.
--- nessus-libraries/libnessus/popen.c 27 Dec 2004 17:31:18 -0000 1.15
+++ nessus-libraries/libnessus/popen.c 23 Apr 2005 14:34:44 -0000
@@ -89,8 +89,8 @@
if (nice(inice) < 0 && errno)
perror("nice");
}
- /* Memory usage: unlimited */
- rl.rlim_cur = rl.rlim_max = RLIM_INFINITY;
+ /* Memory usage: 1 GB, as HP/UX does not like "RLIM_INFINITY" */
+ rl.rlim_cur = rl.rlim_max = 0x10000000;
#ifdef RLIMIT_DATA
if (setrlimit(RLIMIT_DATA, &rl) < 0) perror("RLIMIT_DATA");
#endif
_______________________________________________
Nessus mailing list
[email protected]
http://mail.nessus.org/mailman/listinfo/nessus