tty_signal_session_leader(9)
πΈ NAME πΈ
okay bestie, meet tty_signal_session_leader from the Kernel API Manual β literally the function that sends SIGHUP to the session leader. no cap, that's the whole name vibe. π
β¨ SYNOPSIS β¨
int tty_signal_session_leader (struct tty_struct *tty , int exit_session
);
π ARGUMENTS π
ttyβ the controlling tty. that's the whole argument, bestie π«Άexit_sessionβ if it's non-zero, signal all foreground group processes. yes ma'am β¨
π DESCRIPTION π
so here's the tea: this sends SIGHUP and SIGCONT to the session leader and its process group. optionally, it also signals all processes in the foreground process group. iconic behavior, honestly. π₯
it returns the number of processes in the session that have this tty as their controlling terminal. that value is used to drop tty references for those processes. periodt. π
π₯ SEE ALSO π₯
the kernel file is ./drivers/tty/tty_jobctrl.c, and the whole related crew is right here:
__tty_check_change(9)__proc_set_tty(9)disassociate_ctty(9)tiocsctty(9)tty_get_pgrp(9)tiocgpgrp(9)tiocspgrp(9)tiocgsid(9)
go off, kernel fam ππ
byeee π«Ά this cutie lives under ./drivers/tty and is dated October 2026 β mwah π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms