tty_signal_session_leader(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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:

go off, kernel fam πŸ‘‘πŸŒˆ


byeee 🫢 this cutie lives under ./drivers/tty and is dated October 2026 β€” mwah πŸ’‹

πŸ“¦ where this page comes from