.. | .. |
---|
11 | 11 | #include <linux/tty.h> |
---|
12 | 12 | #include <linux/fcntl.h> |
---|
13 | 13 | #include <linux/uaccess.h> |
---|
| 14 | +#include "tty.h" |
---|
14 | 15 | |
---|
15 | 16 | static int is_ignored(int sig) |
---|
16 | 17 | { |
---|
.. | .. |
---|
44 | 45 | tty_pgrp = tty->pgrp; |
---|
45 | 46 | spin_unlock_irqrestore(&tty->ctrl_lock, flags); |
---|
46 | 47 | |
---|
47 | | - if (tty_pgrp && pgrp != tty->pgrp) { |
---|
| 48 | + if (tty_pgrp && pgrp != tty_pgrp) { |
---|
48 | 49 | if (is_ignored(sig)) { |
---|
49 | 50 | if (sig == SIGTTIN) |
---|
50 | 51 | ret = -EIO; |
---|
.. | .. |
---|
178 | 179 | |
---|
179 | 180 | /** |
---|
180 | 181 | * 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 |
---|
183 | 184 | * |
---|
184 | 185 | * Send SIGHUP and SIGCONT to the session leader and its process group. |
---|
185 | 186 | * Optionally, signal all processes in the foreground process group. |
---|
.. | .. |
---|
316 | 317 | read_unlock(&tasklist_lock); |
---|
317 | 318 | } |
---|
318 | 319 | |
---|
319 | | -/** |
---|
| 320 | +/* |
---|
320 | 321 | * |
---|
321 | 322 | * no_tty - Ensure the current process does not have a controlling tty |
---|
322 | 323 | */ |
---|