diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2024-01-09 14:12:31 +0000 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2024-01-16 14:07:05 +0000 |
commit | b7868e74103541f3271a170fe3bc2b19a00cc8cf (patch) | |
tree | 6db5e9e36d47b0acc1102d7d9a5f473a357e5f0e /winsup | |
parent | 91457377d6c9f89a08b1b70e45cbae87ef467119 (diff) | |
download | newlib-b7868e74103541f3271a170fe3bc2b19a00cc8cf.zip newlib-b7868e74103541f3271a170fe3bc2b19a00cc8cf.tar.gz newlib-b7868e74103541f3271a170fe3bc2b19a00cc8cf.tar.bz2 |
Cygwin: Disable writing core dumps by default.
Change the default core limit from unlimited to 0 (disabled)
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/mm/cygheap.cc | 2 | ||||
-rw-r--r-- | winsup/cygwin/release/3.5.0 | 3 | ||||
-rw-r--r-- | winsup/doc/new-features.xml | 6 |
3 files changed, 10 insertions, 1 deletions
diff --git a/winsup/cygwin/mm/cygheap.cc b/winsup/cygwin/mm/cygheap.cc index a20ee59..3dc0c01 100644 --- a/winsup/cygwin/mm/cygheap.cc +++ b/winsup/cygwin/mm/cygheap.cc @@ -294,7 +294,7 @@ cygheap_init () cygheap->locale.mbtowc = __utf8_mbtowc; /* Set umask to a sane default. */ cygheap->umask = 022; - cygheap->rlim_core = RLIM_INFINITY; + cygheap->rlim_core = 0; } if (!cygheap->fdtab) cygheap->fdtab.init (); diff --git a/winsup/cygwin/release/3.5.0 b/winsup/cygwin/release/3.5.0 index 1e62316..5940d80 100644 --- a/winsup/cygwin/release/3.5.0 +++ b/winsup/cygwin/release/3.5.0 @@ -64,3 +64,6 @@ What changed: - When RLIMIT_CORE is more than 1MB, a core dump file which can be loaded by gdb is now written on a fatal error. Otherwise, if it's greater than zero, a text format .stackdump file is written, as previously. + +- The default RLIMIT_CORE is now 0, disabling the generation of core dump or + stackdump files. diff --git a/winsup/doc/new-features.xml b/winsup/doc/new-features.xml index f8e38f5..17c688f 100644 --- a/winsup/doc/new-features.xml +++ b/winsup/doc/new-features.xml @@ -103,6 +103,12 @@ is now written on a fatal error. Otherwise, if it's greater than zero, a text format .stackdump file is written, as previously. </para></listitem> +<listitem><para> +The default RLIMIT_CORE is now 0, disabling the generation of core dump or +stackdump files. Use e.g. <code>ulimit -c unlimited</code> or <code>ulimit -c +1024</code> to enable them again. +</para></listitem> + </itemizedlist> </sect2> |