Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Aug 2009 22:48:20 +0200
From:      Ed Schouten <ed@80386.nl>
To:        Nathan Lay <nslay@comcast.net>
Cc:        freebsd-current@FreeBSD.org, Jeremie Le Hen <jeremie@le-hen.org>
Subject:   Re: truss(1) locked in kernel with 8.0-BETA2
Message-ID:  <20090823204820.GB2829@hoeg.nl>
In-Reply-To: <4A91A577.3050005@comcast.net>
References:  <20090822185812.GC61707@felucia.tataz.chchile.org> <20090822194009.GQ1292@hoeg.nl> <4A90C099.8030605@comcast.net> <20090823065058.GR1292@hoeg.nl> <4A91A577.3050005@comcast.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--Fba/0zbH8Xs+Fj9o
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Nathan Lay <nslay@comcast.net> 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 <ed@80386.nl>
 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090823204820.GB2829>