hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/drivers/tty/tty_jobctrl.c
....@@ -11,6 +11,7 @@
1111 #include <linux/tty.h>
1212 #include <linux/fcntl.h>
1313 #include <linux/uaccess.h>
14
+#include "tty.h"
1415
1516 static int is_ignored(int sig)
1617 {
....@@ -44,7 +45,7 @@
4445 tty_pgrp = tty->pgrp;
4546 spin_unlock_irqrestore(&tty->ctrl_lock, flags);
4647
47
- if (tty_pgrp && pgrp != tty->pgrp) {
48
+ if (tty_pgrp && pgrp != tty_pgrp) {
4849 if (is_ignored(sig)) {
4950 if (sig == SIGTTIN)
5051 ret = -EIO;
....@@ -178,8 +179,8 @@
178179
179180 /**
180181 * tty_signal_session_leader - sends SIGHUP to session leader
181
- * @tty controlling tty
182
- * @exit_session if non-zero, signal all foreground group processes
182
+ * @tty: controlling tty
183
+ * @exit_session: if non-zero, signal all foreground group processes
183184 *
184185 * Send SIGHUP and SIGCONT to the session leader and its process group.
185186 * Optionally, signal all processes in the foreground process group.
....@@ -316,7 +317,7 @@
316317 read_unlock(&tasklist_lock);
317318 }
318319
319
-/**
320
+/*
320321 *
321322 * no_tty - Ensure the current process does not have a controlling tty
322323 */