Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Aug 2008 14:11:46 GMT
From:      Ed Schouten <ed@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 146623 for review
Message-ID:  <200808041411.m74EBk4g060187@repoman.freebsd.org>

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

Change 146623 by ed@ed_flippo on 2008/08/04 14:10:50

	Don't enter the zombie state when the device isn't opened.

Affected files ...

.. //depot/projects/mpsafetty/sys/kern/tty_ttydisc.c#5 edit

Differences ...

==== //depot/projects/mpsafetty/sys/kern/tty_ttydisc.c#5 (text+ko) ====

@@ -559,8 +559,13 @@
 	if (open)
 		cv_broadcast(&tp->t_dcdwait);
 	
-	/* Ignore modem status lines */
-	if (CMP_FLAG(c, CLOCAL))
+	/*
+	 * Ignore modem status lines when CLOCAL is turned on, but don't
+	 * enter the zombie state when the TTY isn't opened, because
+	 * that would cause the TTY to be in zombie state after being
+	 * opened.
+	 */
+	if (!tty_opened(tp) || CMP_FLAG(c, CLOCAL))
 		return;
 
 	if (open == 0) {



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