#!/usr/bin/perl
# cpanel10 - cPLimits.pm                          Copyright(c) 2005 cPanel, Inc.
#                                                           All rights Reserved.
# copyright@cpanel.net                                         http://cpanel.net
# This code is subject to the cpanel license. Unauthorized copying is prohibited

package cPLimits;

use BSD::Resource qw(setrlimit RLIMIT_RSS RLIMIT_AS RLIMIT_CORE RLIM_INFINITY);

sub unsetrlimits {
    setrlimit(RLIMIT_RSS,RLIM_INFINITY,RLIM_INFINITY)
        || warn "$$: Unable to set RLIMIT_RSS";
    setrlimit(RLIMIT_AS,RLIM_INFINITY,RLIM_INFINITY)
        || warn "$$: Unable to set RLIMIT_AS";
    setrlimit(RLIMIT_CORE,RLIM_INFINITY,RLIM_INFINITY)
        || warn "$$: Unable to set RLIMIT_CORE\n";
    return 1;
}

1;
