]> git.baikalelectronics.ru Git - kernel.git/commit
pty: Ignore slave open count for master pty open
authorPeter Hurley <peter@hurleysoftware.com>
Wed, 30 Jan 2013 17:43:52 +0000 (12:43 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Feb 2013 23:40:29 +0000 (15:40 -0800)
commit36727057d240812c65387e6294d42ad1a3b46184
tree3f23619bc0f1bf0625fce0c9d4bbc89b484077e3
parente9eb886989442e625975a7d4bb57bb458aca6d2a
pty: Ignore slave open count for master pty open

Multiple slave pty opens may be performed in parallel with the
master open. Of course, all the slave opens will fail because the
master pty is still locked but during this time the slave pty
count will be artificially greater than 1. This is should not
cause the master pty open to fail.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/pty.c