Date: Thu, 23 Dec 2004 19:20:56 GMT From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 67595 for review Message-ID: <200412231920.iBNJKu7B074647@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=67595 Change 67595 by jhb@jhb_slimer on 2004/12/23 19:20:04 Defer tty_close() until the very end of ttyclose() since tty_close() may remove the last reference to 'tp' via ttyrel() resulting in it being free'd. Affected files ... .. //depot/projects/smpng/sys/kern/tty.c#54 edit Differences ... ==== //depot/projects/smpng/sys/kern/tty.c#54 (text+ko) ==== @@ -3172,10 +3172,10 @@ ttyldoptim(tp); if (tp->t_close != NULL) tp->t_close(tp); - tty_close(tp); tp->t_do_timestamp = 0; if (tp->t_pps != NULL) tp->t_pps->ppsparam.mode = 0; + tty_close(tp); return (0); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412231920.iBNJKu7B074647>