From 448c19077c195fafd244539eeb5315773261fcaf Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Mon, 1 Dec 2008 14:40:26 +0000 Subject: Don't disable the creation of core files Creation of core files can be disabled in the OS environment such as by using the ulimit program. --- src/tinyproxy.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src') diff --git a/src/tinyproxy.c b/src/tinyproxy.c index f3bf169..03ca9b5 100644 --- a/src/tinyproxy.c +++ b/src/tinyproxy.c @@ -176,18 +176,6 @@ main(int argc, char **argv) struct group *thisgroup = NULL; FILE *config_file; - /* - * Disable the creation of CORE files right up front. - */ -#if defined(HAVE_SETRLIMIT) && defined(NDEBUG) - struct rlimit core_limit = { 0, 0 }; - if (setrlimit(RLIMIT_CORE, &core_limit) < 0) { - fprintf(stderr, "%s: Could not set the core limit to zero.\n", - argv[0]); - exit(EX_SOFTWARE); - } -#endif /* HAVE_SETRLIMIT */ - /* Only allow u+rw bits. This may be required for some versions * of glibc so that mkstemp() doesn't make us vulnerable. */ -- cgit v1.2.3