PERFORCE change 150556 for review

Ed Schouten ed at FreeBSD.org
Sat Sep 27 10:28:35 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=150556

Change 150556 by ed at 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);
 


More information about the p4-projects mailing list