Date: Sun, 21 Sep 1997 13:27:47 -0700 (PDT) From: Brian Somers <brian@FreeBSD.ORG> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-usrsbin@FreeBSD.ORG Subject: cvs commit: src/usr.sbin/ppp main.c modem.c Message-ID: <199709212027.NAA11892@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
brian 1997/09/21 13:27:47 PDT
Modified files: (Branch: RELENG_2_2)
usr.sbin/ppp main.c modem.c
Log:
MFC: It turns out that the following:
close(1);
close(2);
x = open(ctermid(NULL), O_RDWR|O_NONBLOCK);
close(0)
on a tty causes select() to return an exception for descriptor x !
This is the case in RELENG_2_2, but not in 2.2.2. I'm not sure why.
Instead of doing the x=open() and close(0), we just do x=0 now.
Problem pointed out by: Greg Lehey <grog@lemis.com>
Tomi Vainio <tomppa@fidata.fi>
Revision Changes Path
1.22.2.39 +1 -2 src/usr.sbin/ppp/main.c
1.24.2.22 +4 -15 src/usr.sbin/ppp/modem.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199709212027.NAA11892>
