From owner-cvs-src@FreeBSD.ORG Thu Dec 20 21:10:07 2007 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2836B16A46E; Thu, 20 Dec 2007 21:10:07 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id F22C413C4CE; Thu, 20 Dec 2007 21:10:06 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id lBKLA6xK076059; Thu, 20 Dec 2007 21:10:06 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id lBKLA62l076058; Thu, 20 Dec 2007 21:10:06 GMT (envelope-from jhb) Message-Id: <200712202110.lBKLA62l076058@repoman.freebsd.org> From: John Baldwin Date: Thu, 20 Dec 2007 21:10:06 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libutil pty.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Dec 2007 21:10:07 -0000 jhb 2007-12-20 21:10:06 UTC FreeBSD src repository Modified files: lib/libutil pty.c Log: 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 Revision Changes Path 1.19 +13 -1 src/lib/libutil/pty.c