Re: Reading from a pty after slave exited
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=G+HrIdV1vv2/L8Mtj3k+0//gFTlvJ/uDdE4Gvm9JzQk=; b=Wiz2KQ8fsHdGlCq0NWKcF2RJQr4ucvTDRV0PptLboG1Ctjl4QmYZ82znLdYxz19gHr zaIMSsU2FHh2+vy8OHMWLybK4BY32RsNvEzONlcMdK9P/nuQbjZvrtKrS9IWGy9c/rKq gUWRckr6HdeEo2zySWDnKNMBWV52MaHs1pz4o= Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=RmsYmXlKLMJ87noSp/6YDCnmEpXniJeSkMuiMWdkFVig5hJv8Mu6hStMJnqKlx+zTG dZyGbxULOh0nmIvMuStdlmTxv+DDHN0JVHy9KMX3pDCMU57fLn3ZfHaoIgnSfCIcHsfJ Ld6Ivq2UyjIOeYCc0vzn6hJqb3IMmAPx8CBVk= On Tue, Apr 27, 2010 at 9:39 PM, Terry Lambert <tlambert@apple.com> wrote:
Maybe you are referring to the VMIN/VTIME experiments that I mentioned a few posts ago? For what it's worth, the reason I applied these to the master end was because the only useful explanation of VMIN/VTIME I could find so far -- http://www.unixwiz.net/techtips/termios-vmin-vtime.html -- makes it sound like it is a setting applicable to reading, not writing, and since in my example the master is what does the reading, that's where I applied it.
Yes, sorry it wasn't clear.
The ttread that implements the VMIN/VTIME is only called from l_read through the linesw line discipline table, which is only called from ptsd_read() (cloning pty slave side) or ptsread() (non-cloning pty slave side).
I see, that makes sense. All sorted now at my end. Thanks for your help and patience, much appreciated. -Julian _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Julian Scheid