pub fn set_pdeathsig(sig: i32) -> Result<(), CoreError>Expand description
Set the signal sent to this process when its parent thread dies
(PR_SET_PDEATHSIG).
Precision: the signal is delivered when the parent thread that created
this task exits (forget_original_parent runs on every thread’s
do_exit), not when the parent process dies — in a thread-pool caller a
worker-thread exit kills its children while the process lives. The signal
is retained across exec except under bprm->secureexec. For spawn
wiring (which is opt-in and leader-only) see
SpawnOptionsBuilder::pdeath_signal.