diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2024-01-16 19:12:51 +0300 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2024-01-23 19:07:50 +0300 |
commit | 15140d6df667a71e660dc9da9ca9071fa3c5dbbd (patch) | |
tree | 32c4e107465b0085c566afd6097b1055388a9b17 /winsup/doc/cygwinenv.xml | |
parent | 752489c76e2a3c8f4b658597ff7956466366961c (diff) |
A process which is exiting due to a core dumping signal doesn't
propagate the correct exist status after dumping core, because 'dumper'
itself forcibly terminates the process.
Use 'dumper -n' to avoid killing the dumped process, so we continue to
the end of signal_exit(), to exit with the 128+signal exit status.
Busy-wait in exec_prepared_command() in an attempt to reliably notice
the dumper attaching, so we don't get stuck there.
Also: document these important facts for custom uses of error_start.
Diffstat (limited to 'winsup/doc/cygwinenv.xml')
-rw-r--r-- | winsup/doc/cygwinenv.xml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/winsup/doc/cygwinenv.xml b/winsup/doc/cygwinenv.xml index d97f2b77d..05672c404 100644 --- a/winsup/doc/cygwinenv.xml +++ b/winsup/doc/cygwinenv.xml @@ -46,6 +46,12 @@ to the command as arguments. Note: This has no effect if a debugger is already attached when the fatal error occurs. </para> +<para> + Note: The command invoked must either (i) attach to the errored process with + <function>DebugActiveProcess()</function>, or (ii) forcibly terminate the + errored process (with <function>TerminateProcess()</function> or similar), as + otherwise the errored process will wait forever for a debugger to attach. +</para> </listitem> <listitem> |