[MPlayer-dev-eng] [RFC] rlimits support

compn tempn at twmi.rr.com
Sat Oct 9 15:56:03 CEST 2010


On Sat, 9 Oct 2010 15:03:53 +0200, Reimar Döffinger wrote:
>
>Hello,
>this is an unfinished patch to add support for rlimits.
>The main point of it would be to limit RLIMIT_DATA to something
>"reasonable" like e.g. 512 MB by default, which for most users
>would guarantee that MPlayer never causes an unusable system
>due to a memleak and excessive swapping caused by that.
>This should also make it possible to test in a semi-automated
>way that MPlayer can handle out-of-memory conditions where
>NULL is returned by malloc. 
>It lacks at the very least: configure check, command-line option,
>documentation.

any idea which OS supports rlimit ? e.g. mplayer builds on osx,
cygwin/mingw, os/2, bsd etc.

>Index: mplayer.c

is it wise to add this to mencoder too? or mpcommon so both mplayer and
mencoder can use it? sorry for any dumb questions.

-compn


More information about the MPlayer-dev-eng mailing list