diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index 55986056dd607..80e63c027137b 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -445,6 +445,11 @@ impl Application { .ok(); restore_term().unwrap(); + // SAFETY: + // + // - helix must have permissions to send signals to all processes in its signal + // group, either by already having the requisite permission, or by having the + // user's UID / EUID / SUID match that of the receiving process(es). let res = unsafe { // A pid of 0 sends the signal to the entire process group, allowing the user to // regain control of their terminal if the editor was spawned under another process