Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Sep 2008 10:28:34 GMT
From:      Ed Schouten <ed@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 150556 for review
Message-ID:  <200809271028.m8RASYF9031404@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=150556

Change 150556 by ed@ed_dull on 2008/09/27 10:27:47

	Don't rely on ttydisc_modem() to wake up inwait and outwait when
	abandoning the TTY.

Affected files ...

.. //depot/projects/mpsafetty/sys/kern/tty.c#52 edit

Differences ...

==== //depot/projects/mpsafetty/sys/kern/tty.c#52 (text+ko) ====

@@ -973,7 +973,8 @@
 	/* Simulate carrier removal. */
 	ttydisc_modem(tp, 0);
 
-	/* Wake up misc. blocked threads. */
+	/* Wake up all blocked threads. */
+	tty_wakeup(tp, FREAD|FWRITE);
 	cv_broadcast(&tp->t_bgwait);
 	cv_broadcast(&tp->t_dcdwait);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200809271028.m8RASYF9031404>