1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Comment and style tweak.

This commit is contained in:
John Baldwin 2006-11-01 16:48:33 +00:00
parent eba8f13797
commit 9045eda252
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=163878

View File

@ -123,7 +123,7 @@ static struct cdevsw ptc_cdevsw = {
/*-
* Once a tty is allocated, it cannot (currently) be freed. As such,
* we keep a global list of ptys that have been used so we can recycle
* them. An another list is provided for released pts, whiiich are
* them. Another list is provided for released pts, which are
* not currently allocated, permitting reuse. pt_flags holds state
* associated with a particular session, so isn't overloaded for this.
* When a pty descriptor is unused, its number is set to -1 giving
@ -276,7 +276,7 @@ ptsopen(struct cdev *dev, int flag, int devtype, struct thread *td)
if (tp->t_oproc) /* Ctrlr still around. */
ttyld_modem(tp, 1);
while ((tp->t_state & TS_CARR_ON) == 0) {
if (flag&FNONBLOCK)
if (flag & FNONBLOCK)
break;
error = ttysleep(tp, TSA_CARR_ON(tp), TTIPRI | PCATCH,
"ptsopn", 0);