summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1994-03-18 23:35:37 +0000
committerache <ache@FreeBSD.org>1994-03-18 23:35:37 +0000
commit2ca9eed233ea0ed9e64723aafd3b146d7ed49337 (patch)
tree1fac79c108c00c3bd3c851a9d9dc49e3f509dd7d
parent5e05b99e2cde02efa049f7fb66b5f0f49614489b (diff)
downloadFreeBSD-src-2ca9eed233ea0ed9e64723aafd3b146d7ed49337.zip
FreeBSD-src-2ca9eed233ea0ed9e64723aafd3b146d7ed49337.tar.gz
Remove ttyfree from sioclose
Example: Application use port cua01 Getty open ttyd1 (allocates rawq,outq,etc) and waits while application done Application quits, sioclose issued, ttyfree issued (getty calls revoke) Getty awakes and goes to panic into initrb (NULL rawq)
-rw-r--r--sys/dev/sio/sio.c7
-rw-r--r--sys/i386/isa/sio.c7
-rw-r--r--sys/isa/sio.c7
3 files changed, 3 insertions, 18 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c
index fd9c219..3df9d45 100644
--- a/sys/dev/sio/sio.c
+++ b/sys/dev/sio/sio.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
- * $Id: sio.c,v 1.33 1994/03/10 10:06:27 ache Exp $
+ * $Id: sio.c,v 1.34 1994/03/14 18:52:14 ache Exp $
*/
#include "sio.h"
@@ -774,11 +774,6 @@ sioclose(dev, flag, mode, p)
(*linesw[tp->t_line].l_close)(tp, flag);
ttyclose(tp);
comhardclose(com);
- ttyfree(tp);
-#ifdef broken /* session holds a ref to the tty; can't deallocate */
- sio_tty[UNIT(dev)] = (struct tty *)NULL;
- com->tp = (struct tty *)NULL;
-#endif
return (0);
}
diff --git a/sys/i386/isa/sio.c b/sys/i386/isa/sio.c
index fd9c219..3df9d45 100644
--- a/sys/i386/isa/sio.c
+++ b/sys/i386/isa/sio.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
- * $Id: sio.c,v 1.33 1994/03/10 10:06:27 ache Exp $
+ * $Id: sio.c,v 1.34 1994/03/14 18:52:14 ache Exp $
*/
#include "sio.h"
@@ -774,11 +774,6 @@ sioclose(dev, flag, mode, p)
(*linesw[tp->t_line].l_close)(tp, flag);
ttyclose(tp);
comhardclose(com);
- ttyfree(tp);
-#ifdef broken /* session holds a ref to the tty; can't deallocate */
- sio_tty[UNIT(dev)] = (struct tty *)NULL;
- com->tp = (struct tty *)NULL;
-#endif
return (0);
}
diff --git a/sys/isa/sio.c b/sys/isa/sio.c
index fd9c219..3df9d45 100644
--- a/sys/isa/sio.c
+++ b/sys/isa/sio.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
- * $Id: sio.c,v 1.33 1994/03/10 10:06:27 ache Exp $
+ * $Id: sio.c,v 1.34 1994/03/14 18:52:14 ache Exp $
*/
#include "sio.h"
@@ -774,11 +774,6 @@ sioclose(dev, flag, mode, p)
(*linesw[tp->t_line].l_close)(tp, flag);
ttyclose(tp);
comhardclose(com);
- ttyfree(tp);
-#ifdef broken /* session holds a ref to the tty; can't deallocate */
- sio_tty[UNIT(dev)] = (struct tty *)NULL;
- com->tp = (struct tty *)NULL;
-#endif
return (0);
}
OpenPOWER on IntegriCloud