]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Invoke revoke(2) on the slave pty in the pts(4) case (new_openpty()) to
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 20 Dec 2007 21:10:06 +0000 (21:10 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 20 Dec 2007 21:10:06 +0000 (21:10 +0000)
commit889befc455b85f5b520d7f7d349dda472ae2e61e
tree1cfec13fa90b42599aa31ca935614f34eeaa6797
parent0079ea20862674f6e761e400cadc031892f734b6
Invoke revoke(2) on the slave pty in the pts(4) case (new_openpty()) to
kick off any other users on the device line before using it since
openpty(3) is documented to do this.  Note that grantpt(3) does not
call revoke(2), it only adjusts permissions and ownership.

MFC after: 3 days
lib/libutil/pty.c