summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/sio/sio.c4
-rw-r--r--sys/i386/isa/sio.c4
-rw-r--r--sys/isa/sio.c4
3 files changed, 9 insertions, 3 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c
index a90d45a..46afee0 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.37 1994/03/21 22:19:56 ache Exp $
+ * $Id: sio.c,v 1.38 1994/03/23 17:28:35 ache Exp $
*/
#include "sio.h"
@@ -818,6 +818,8 @@ comhardclose(com)
tsleep((caddr_t)&com->dtr_wait, TTIPRI,
"sioclose", com->dtr_wait);
}
+ com->last_modem_status =
+ com->prev_modem_status = inb(com->modem_status_port);
}
#ifdef COM_BIDIR
diff --git a/sys/i386/isa/sio.c b/sys/i386/isa/sio.c
index a90d45a..46afee0 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.37 1994/03/21 22:19:56 ache Exp $
+ * $Id: sio.c,v 1.38 1994/03/23 17:28:35 ache Exp $
*/
#include "sio.h"
@@ -818,6 +818,8 @@ comhardclose(com)
tsleep((caddr_t)&com->dtr_wait, TTIPRI,
"sioclose", com->dtr_wait);
}
+ com->last_modem_status =
+ com->prev_modem_status = inb(com->modem_status_port);
}
#ifdef COM_BIDIR
diff --git a/sys/isa/sio.c b/sys/isa/sio.c
index a90d45a..46afee0 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.37 1994/03/21 22:19:56 ache Exp $
+ * $Id: sio.c,v 1.38 1994/03/23 17:28:35 ache Exp $
*/
#include "sio.h"
@@ -818,6 +818,8 @@ comhardclose(com)
tsleep((caddr_t)&com->dtr_wait, TTIPRI,
"sioclose", com->dtr_wait);
}
+ com->last_modem_status =
+ com->prev_modem_status = inb(com->modem_status_port);
}
#ifdef COM_BIDIR
OpenPOWER on IntegriCloud