projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ef1698
)
Revert "TTY: pty, remove superfluous ptm test"
author
Greg Kroah-Hartman
<
[email protected]
>
Fri, 24 Feb 2012 21:56:36 +0000
(13:56 -0800)
committer
Greg Kroah-Hartman
<
[email protected]
>
Fri, 24 Feb 2012 21:56:36 +0000
(13:56 -0800)
This reverts commit
a50f724a432997321cabb6c9e665c28e34850f78
.
Sasha reported that this causes problems, so revert it.
Cc: Alan Cox <
[email protected]
>
Cc: Jiri Slaby <
[email protected]
>
Cc: Sasha Levin <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/tty/pty.c
patch
|
blob
|
history
diff --git
a/drivers/tty/pty.c
b/drivers/tty/pty.c
index ddec9f3c33962d2a57c30a05ba7af9e3aa10a19f..d505837b34782fa44aa9db5965aa84682945886c 100644
(file)
--- a/
drivers/tty/pty.c
+++ b/
drivers/tty/pty.c
@@
-54,7
+54,10
@@
static void pty_close(struct tty_struct *tty, struct file *filp)
wake_up_interruptible(&tty->link->write_wait);
if (tty->driver->subtype == PTY_TYPE_MASTER) {
set_bit(TTY_OTHER_CLOSED, &tty->flags);
- devpts_pty_kill(tty->link);
+#ifdef CONFIG_UNIX98_PTYS
+ if (tty->driver == ptm_driver)
+ devpts_pty_kill(tty->link);
+#endif
tty_unlock();
tty_vhangup(tty->link);
tty_lock();