Date: Tue, 26 Mar 1996 13:34:24 +1100 From: Bruce Evans <bde@zeta.org.au> To: davidg@Root.COM, jkh@time.cdrom.com Cc: freebsd-current@FreeBSD.org Subject: Re: Patch to talkd Message-ID: <199603260234.NAA14811@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>>As Poul-H says, we also should only update the tty mod time on input, >>not output. That would solve the other problem people have been >>talking about where it gets lost in some scrolling text. > As far as I was ever aware, that's what the code *does* do. I've never seen >the idle time affected by output. Hmmm. systat uses getch() to read from the terminal and there's a bug somewhere that results in the atime being set for unsuccessful reads. I think getch() does a blocking read and the read gets terminated by a SIGALRM. ufsspec_read() is more broken than ufs_readwrite(). It sets the IN_ACCESS flag at the start of the read, long before successful completion, so the access time may be stamped soon after but not upon sucessful completion. ufs_readwrite() only sets it upon both unsuccessful and successful completions. Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199603260234.NAA14811>
