summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2014-11-05 12:12:56 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-11-05 18:42:15 -0800
commit324c1650ca2d6c1325afbb53d1187e63bbeaad0b (patch)
tree54f743bb9e26dc7b51a220bd92c237fdd75422d5 /include/linux
parentdeb287e7401bbbf7803731805acbda1d983d1999 (diff)
downloadcachepc-linux-324c1650ca2d6c1325afbb53d1187e63bbeaad0b.tar.gz
cachepc-linux-324c1650ca2d6c1325afbb53d1187e63bbeaad0b.zip
tty: Simplify pty pair teardown logic
When the slave side closes and its tty count is 0, the pty pair can be destroyed; the master side must have already closed for the slave side tty count to be 0. Thus, only the pty master close must check if the slave side has closed by checking the slave tty count. Remove the pre-computed closing flags and check the actual count(s). Regular ttys are unaffected by this change. Reviewed-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions