summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMukund Sivaraman <muks@banu.com>2008-12-01 14:40:26 +0000
committerMukund Sivaraman <muks@banu.com>2008-12-01 14:40:26 +0000
commit448c19077c195fafd244539eeb5315773261fcaf (patch)
tree3b38b6c6e26e4062aba67bc4abd61521e61aec8b
parenta37a81db2daf7fa475cb104e48265b889e42d99c (diff)
downloadtinyproxy-448c19077c195fafd244539eeb5315773261fcaf.tar.gz
tinyproxy-448c19077c195fafd244539eeb5315773261fcaf.zip
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.
-rw-r--r--src/tinyproxy.c12
1 files changed, 0 insertions, 12 deletions
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.
*/