From: Linus Torvalds Date: Wed, 30 Sep 2009 14:49:40 +0000 (-0700) Subject: pty: reconnect the BSD TIOCSPTLCK handling to legacy ptys X-Git-Tag: v2.6.32-rc3~67 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=342a597146e8639f7c8d49f056340c2e5536dda6;p=pandora-kernel.git pty: reconnect the BSD TIOCSPTLCK handling to legacy ptys David Howells noticed (due to the compiler warning about an unused 'pty_ops_bsd' variable) that we haven't actually been using the code that implements TIOCSPTLCK for legacy pty handling. It's been that way since 2.6.26, commit 3e8e88ca053150efdbecb45d8f481cf560ec808d to be exact ("pty: prepare for tty->ops changes"). DavidH initially submitted a patch just removing the dead code entirely, and since nobody has apparently ever complained, I'm not entirely sure that wouldn't be the right thing to do. But since the whole and only point of the legacy pty code is to be compatible with legacy distros that don't use the new unix98 pty model, let's just wire it up again. And clean it up a bit while we're at it. Acked-by: David Howells Cc: Alan Cox Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed