Re: [PATCH] Cygwin: Make 'ulimit -c' control writing a coredump

2022-06-15 Thread Corinna Vinschen
On Jun 15 12:40, Jon Turney wrote: > On 15/06/2022 12:21, Jon Turney wrote: > > Factor out pre-formatting a command to be executed on fatal signal, and > > use that for both error_start (if present in the CYGWIN env var) and for > > 'dumper'. > > > > Factor out executing that command, so we can

Re: [PATCH] Cygwin: Make 'ulimit -c' control writing a coredump

2022-06-15 Thread Jon Turney
On 15/06/2022 12:21, Jon Turney wrote: Factor out pre-formatting a command to be executed on fatal signal, and use that for both error_start (if present in the CYGWIN env var) and for 'dumper'. Factor out executing that command, so we can use it from try_to_debug() and when a fatal signal

[PATCH] Cygwin: Make 'ulimit -c' control writing a coredump

2022-06-15 Thread Jon Turney
Factor out pre-formatting a command to be executed on fatal signal, and use that for both error_start (if present in the CYGWIN env var) and for 'dumper'. Factor out executing that command, so we can use it from try_to_debug() and when a fatal signal occurs. Because we can't control the size of