mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 23:19:00 +00:00
Call ptsstop in ptsclose instead of ptcwakeup
This commit is contained in:
parent
40a36bc906
commit
83d05492ed
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=7730
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)tty_pty.c 8.2 (Berkeley) 9/23/93
|
||||
* $Id: tty_pty.c,v 1.8 1995/02/28 00:21:05 pst Exp $
|
||||
* $Id: tty_pty.c,v 1.9 1995/04/09 22:28:24 ache Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -159,8 +159,8 @@ ptsclose(dev, flag, mode, p)
|
||||
int err;
|
||||
|
||||
tp = &pt_tty[minor(dev)];
|
||||
ptcwakeup(tp, FREAD|FWRITE);
|
||||
err = (*linesw[tp->t_line].l_close)(tp, flag);
|
||||
ptsstop(tp, FREAD|FWRITE);
|
||||
(void) ttyclose(tp);
|
||||
return (err);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user