mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 14:41:27 +00:00
tty: Add a kref count
Introduce a kref to the tty structure and use it to protect the tty->signal tty references. For now we don't introduce it for anything else. Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
348eb12e55
commit
9c9f4ded90
4 changed files with 71 additions and 10 deletions
|
@ -1060,9 +1060,7 @@ asmlinkage long sys_setsid(void)
|
|||
group_leader->signal->leader = 1;
|
||||
__set_special_pids(sid);
|
||||
|
||||
spin_lock(&group_leader->sighand->siglock);
|
||||
group_leader->signal->tty = NULL;
|
||||
spin_unlock(&group_leader->sighand->siglock);
|
||||
proc_clear_tty(group_leader);
|
||||
|
||||
err = session;
|
||||
out:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue