Koen van der Drift wrote:

Hi,

Two of the programs of the emboss package do not work on Mac OS X apparently because of the limited stacksize on Mac OS X. For instance, if I type just 'cirdna' at the prompt, I get an segmentation fault. However if I type 'unlimit stack' first, the program works without a problem.

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

man setrlimit


Note that I've not even tried to compile the following :)

#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
void increase_stack(void)
{
        struct rlimit mylim;
        
        if (!getrlimit(RLIMIT_STACK, &mylim)) {
                mylim.rlim_cur = mylim.rlim_max ;
                setrlimit(RLIMIT_STACK, &mylim);
        }
}



-------------------------------------------------------
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