On Tuesday, October 28, 2003, at 08:01 PM, Koen van der Drift wrote:

Is there a way to patch the source so that the user doesn't have to enter 'unlimit stack' each time?

#include <std.disclaimer> /* haven't tried this myself */ #include <sys/types.h> #include <sys/time.h> #include <sys/resource.h>

struct rlimit rlim;

getrlimit(RLIMIT_STACK, &rlim);
rlim.rlim_cur = RLIM_INFINITY;
setrlimit(RLIMIT_STACK, &rlim);

--
Charles Lepple
[EMAIL PROTECTED]



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to