Subject: Re: CVS commit: src/usr.bin/tip
To: Thor Lancelot Simon <tls@NetBSD.org>
From: enami tsugutomo <enami@sm.sony.co.jp>
List: source-changes
Date: 04/05/2006 10:01:15
Thor Lancelot Simon <tls@NetBSD.org> writes:

>   		ttyfd = real_ttyfd;
> + 		if (lockflag) 
> + 			if(flock(ttyfd, (LOCK_EX|LOCK_NB)) != 0) {
> + 				status = EXIT_LOCK_FAILED;
> + 				close(ttyfd);
> + 				goto errret;
> + 			}
> + 

I'm also no clue about ppp code, but leaving closed file descriptor in
real_ttyfd sounds inconsistent.

enami.