All pastes #41421 Raw Edit

Untitled

public text v1 · immutable
#41421 ·published 2006-02-13 13:35 UTC
rendered paste body
        if (option_dumpcore) {
                struct rlimit l;
                memset(&l, 0, sizeof(l));
                l.rlim_cur = RLIM_INFINITY;
                l.rlim_max = RLIM_INFINITY;
                if (setrlimit(RLIMIT_CORE, &l)) {
                        ast_log(LOG_WARNING, "Unable to disable core size resource limit: %s\n", strerror(errno));
                }
        }