about summary refs log tree commit diff
path: root/library/std/src/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2021-05-13 18:38:25 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2021-05-13 18:38:25 +0100
commitf6a4963cc86bda5f3611f0f59e1ffe53e4b9f3fa (patch)
tree44cf734c168a994c8ec7ad541f11abea2de9b4fb /library/std/src/sys/unix/stack_overflow.rs
parent8220f2f2127b9aec972163ded97be7d8cff6b9a8 (diff)
downloadrust-f6a4963cc86bda5f3611f0f59e1ffe53e4b9f3fa.tar.gz
rust-f6a4963cc86bda5f3611f0f59e1ffe53e4b9f3fa.zip
Use SIGUSR1 rather than SIGTRAP for "allocated after fork"
Some platforma (eg ARM64) apparently generate SIGTRAP for panic abort!

See eg
  https://github.com/rust-lang/rust/pull/81858#issuecomment-840702765

This is probably a bug, but (i) we want to avoid that bug rather than
trying to fix it now and (ii) it would better to use a signal that is
less at risk of strangeness.

I grepped the rust-lang/rut codebase for SIGUSR and there were no hits.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'library/std/src/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions