mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Checking l_close in unneeded (one of my previous fixes),
so back it out.
This commit is contained in:
parent
63a7486262
commit
05e5086aab
3 changed files with 6 additions and 9 deletions
|
|
@ -31,7 +31,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
|
||||
* $Id: sio.c,v 1.32 1994/03/08 22:11:10 ache Exp $
|
||||
* $Id: sio.c,v 1.33 1994/03/10 10:06:27 ache Exp $
|
||||
*/
|
||||
|
||||
#include "sio.h"
|
||||
|
|
@ -772,8 +772,7 @@ sioclose(dev, flag, mode, p)
|
|||
com = com_addr(UNIT(dev));
|
||||
tp = com->tp;
|
||||
(*linesw[tp->t_line].l_close)(tp, flag);
|
||||
if (linesw[tp->t_line].l_close != ttyclose)
|
||||
ttyclose(tp);
|
||||
ttyclose(tp);
|
||||
comhardclose(com);
|
||||
ttyfree(tp);
|
||||
#ifdef broken /* session holds a ref to the tty; can't deallocate */
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
|
||||
* $Id: sio.c,v 1.32 1994/03/08 22:11:10 ache Exp $
|
||||
* $Id: sio.c,v 1.33 1994/03/10 10:06:27 ache Exp $
|
||||
*/
|
||||
|
||||
#include "sio.h"
|
||||
|
|
@ -772,8 +772,7 @@ sioclose(dev, flag, mode, p)
|
|||
com = com_addr(UNIT(dev));
|
||||
tp = com->tp;
|
||||
(*linesw[tp->t_line].l_close)(tp, flag);
|
||||
if (linesw[tp->t_line].l_close != ttyclose)
|
||||
ttyclose(tp);
|
||||
ttyclose(tp);
|
||||
comhardclose(com);
|
||||
ttyfree(tp);
|
||||
#ifdef broken /* session holds a ref to the tty; can't deallocate */
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
|
||||
* $Id: sio.c,v 1.32 1994/03/08 22:11:10 ache Exp $
|
||||
* $Id: sio.c,v 1.33 1994/03/10 10:06:27 ache Exp $
|
||||
*/
|
||||
|
||||
#include "sio.h"
|
||||
|
|
@ -772,8 +772,7 @@ sioclose(dev, flag, mode, p)
|
|||
com = com_addr(UNIT(dev));
|
||||
tp = com->tp;
|
||||
(*linesw[tp->t_line].l_close)(tp, flag);
|
||||
if (linesw[tp->t_line].l_close != ttyclose)
|
||||
ttyclose(tp);
|
||||
ttyclose(tp);
|
||||
comhardclose(com);
|
||||
ttyfree(tp);
|
||||
#ifdef broken /* session holds a ref to the tty; can't deallocate */
|
||||
|
|
|
|||
Loading…
Reference in a new issue