Trim comments and docs to what the code needs

AI Assisted
This commit is contained in:
Seth committed 2026-12-05 13:19:59 -08:00
1 parent eba3c3bf0c
commit 0bd721fc27
33 files changed
+292 -392

No files matched your search

+4 -5
View File
@@ -1,6 +1,5 @@
//! The signals that end the app against the handler that turns them into its quit cleanup. A
//! file of its own, so the handler lives in a test process of its own: without it, a signal below
//! ends the whole process and the run fails. The handler installs once per process, so every
//! Checks that SIGTERM, SIGINT and SIGHUP run the app's quit cleanup. A file of its own, so the
//! handler lives in a test process of its own. The handler installs once per process, so every
//! other case runs in a child: this test binary again, running only `signal_child`.
#![cfg(unix)]
@@ -162,8 +161,8 @@ fn signal_child() {
let Some(case) = std::env::var_os(CHILD) else {
return;
};
// A signal this run was started with ignored (`nohup`, a script's `&`)
// would stay ignored, and no case below means that one.
// Undo signals this run was started with ignored (`nohup`, a script's `&`):
// the handler would leave them ignored, which no case below intends.
for signal in [libc::SIGTERM, libc::SIGINT, libc::SIGHUP] {
// SAFETY: putting a signal's default action back installs no handler.
unsafe { libc::signal(signal, libc::SIG_DFL) };