Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: ulimit strangeness

On Nov 15, 11:55am, Peter Stephenson wrote:
} Subject: Re: ulimit strangeness
} "Bart Schaefer" wrote:
} > It looks like this has something to do with the convoluted #ifdef that
} > prevents duplicate case labels in rlimits.c when both RLIMIT_RSS and
} > RLIMIT_VMEM are defined, but I haven't yet figured out what to fix.
} My guess is the test `RLIMIT_RSS != RLIMIT_VMEM' is incorrectly failing
} in the preprocessor, i.e. it thinks RLIMIT_RSS == RLIMIT_VMEM owing to
} the way the definitions are laid out.

No, it's this, in Src/system.h:

/* we use the SVR4 constant instead of the BSD one */
#if !defined(RLIMIT_NOFILE) && defined(RLIMIT_OFILE)
#if !defined(RLIMIT_VMEM) && defined(RLIMIT_AS)

So RLIMIT_VMEM *is* defined, and is not the same as RLIMIT_RSS, and ...

Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   

Messages sorted by: Reverse Date, Date, Thread, Author