From owner-freebsd-current@FreeBSD.ORG Sun Aug 23 20:48:21 2009 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 989FB106568F for ; Sun, 23 Aug 2009 20:48:21 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:7b8:613:100::211]) by mx1.freebsd.org (Postfix) with ESMTP id 3757B8FC08 for ; Sun, 23 Aug 2009 20:48:21 +0000 (UTC) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 73C811CD58; Sun, 23 Aug 2009 22:48:20 +0200 (CEST) Date: Sun, 23 Aug 2009 22:48:20 +0200 From: Ed Schouten To: Nathan Lay Message-ID: <20090823204820.GB2829@hoeg.nl> References: <20090822185812.GC61707@felucia.tataz.chchile.org> <20090822194009.GQ1292@hoeg.nl> <4A90C099.8030605@comcast.net> <20090823065058.GR1292@hoeg.nl> <4A91A577.3050005@comcast.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Fba/0zbH8Xs+Fj9o" Content-Disposition: inline In-Reply-To: <4A91A577.3050005@comcast.net> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-current@FreeBSD.org, Jeremie Le Hen Subject: Re: truss(1) locked in kernel with 8.0-BETA2 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Aug 2009 20:48:21 -0000 --Fba/0zbH8Xs+Fj9o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Nathan Lay wrote: > Actually, your snipit there fixes it. You can disregard my previous > message, though I am curious about what you specifically meant by > propagating the end-of-file condition. When script(1) receives an end-of-file on the outside, it should somehow send an end-of-file to the process running on the inside. This isn't possible with pseudo-terminals. There isn't a function like shutdown(2) that can be called on a pseudo-terminal master to stop the flow of data in one direction. Normally you would just call close(2), but this means you can't receive any output from processes on the inside. --=20 Ed Schouten WWW: http://80386.nl/ --Fba/0zbH8Xs+Fj9o Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkqRqxQACgkQ52SDGA2eCwVK0QCfSyiIoq55QuorBECgMN8b497y PhgAn3zxqHtkzWMG8BdVo/FqzdrYKF6S =wLiP -----END PGP SIGNATURE----- --Fba/0zbH8Xs+Fj9o--