aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/llvm.zig
diff options
context:
space:
mode:
authorJan Philipp Hafer <jan.hafer@rwth-aachen.de>2022-05-02 00:27:02 +0200
committerAndrew Kelley <andrew@ziglang.org>2022-06-06 15:32:39 -0700
commitd1e8b73939ae9f139d90157a4623c5fe68b0ae64 (patch)
tree2029c88d5d1fea6bb309b0f79f272cfefe3f272a /src/codegen/llvm.zig
parent367e2b2fe43a2de09767ad8d5657866088b44678 (diff)
downloadzig-d1e8b73939ae9f139d90157a4623c5fe68b0ae64.tar.gz
zig-d1e8b73939ae9f139d90157a4623c5fe68b0ae64.zip
std.os.abort: ported signal handling from musl
* Document deviation from Linux man page, which is identical to musl. Man page wants always enabled user-provided abort handlers. Worst case logic bug, which this can introduce: + user disables SIGABRT handler to prevent tear down to last safe state + abort() gets called and enables user-provided SIGABRT handler + SIGABRT tears down to supposed last safe state instead of crash + Application, instead of crashing, continues * Pid 1 within containers needs special handling. - fatal signals are not transmitted without privileges, so use exit as fallback * Fix some signaling bits * Add checks in Debug and ReleaseSafe for wrong sigprocmask
Diffstat (limited to 'src/codegen/llvm.zig')
0 files changed, 0 insertions, 0 deletions