Subject: CVS commit: src/sys/arch/hp300/dev
To: None <source-changes@netbsd.org>
From: Gregory McGarry <gmcgarry@netbsd.org>
List: source-changes
Date: 05/04/2003 02:10:08
Module Name:	src
Committed By:	gmcgarry
Date:		Sun May  4 02:10:08 UTC 2003

Modified Files:
	src/sys/arch/hp300/dev: dcm.c

Log Message:
Fix from Steve Peurifoy in PR#18849:

"Occasionally a blocking open of dcm port 0 will hang in ttyopen()
waiting for carrier detect to be asserted when it's already
present.

The problem is that dcmmint() will return before updating the
value of sc->sc_mcndlast if the device is not open.  If carrier
detect drops after the device is closed, sc->sc_mcndlast will
no longer correctly represent the "previous" state of the
signals when the next transition of carrier detect occurs.
A subsequent blocking open will wait forever for an event
which has in fact taken place."


To generate a diff of this commit:
cvs rdiff -r1.57 -r1.58 src/sys/arch/hp300/dev/dcm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.