tty.c (cf9149694c20fe6d104a724c03f4da85edba1016) | tty.c (6aba400a7055ed2427c6aa297774fb91f5d8db79) |
---|---|
1/*- 2 * Copyright (c) 2008 Ed Schouten <ed@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Portions of this software were developed under sponsorship from Snow 6 * B.V., the Netherlands. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 1008 unchanged lines hidden (view full) --- 1017 TAILQ_REMOVE(&tty_list, tp, t_list); 1018 tty_list_count--; 1019 sx_xunlock(&tty_list_sx); 1020 1021 /* Make sure we haven't leaked buffers. */ 1022 MPASS(ttyinq_getsize(&tp->t_inq) == 0); 1023 MPASS(ttyoutq_getsize(&tp->t_outq) == 0); 1024 | 1/*- 2 * Copyright (c) 2008 Ed Schouten <ed@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Portions of this software were developed under sponsorship from Snow 6 * B.V., the Netherlands. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 1008 unchanged lines hidden (view full) --- 1017 TAILQ_REMOVE(&tty_list, tp, t_list); 1018 tty_list_count--; 1019 sx_xunlock(&tty_list_sx); 1020 1021 /* Make sure we haven't leaked buffers. */ 1022 MPASS(ttyinq_getsize(&tp->t_inq) == 0); 1023 MPASS(ttyoutq_getsize(&tp->t_outq) == 0); 1024 |
1025 seldrain(&tp->t_inpoll); 1026 seldrain(&tp->t_outpoll); |
|
1025 knlist_destroy(&tp->t_inpoll.si_note); 1026 knlist_destroy(&tp->t_outpoll.si_note); 1027 1028 cv_destroy(&tp->t_inwait); 1029 cv_destroy(&tp->t_outwait); 1030 cv_destroy(&tp->t_bgwait); 1031 cv_destroy(&tp->t_dcdwait); 1032 cv_destroy(&tp->t_outserwait); --- 1165 unchanged lines hidden --- | 1027 knlist_destroy(&tp->t_inpoll.si_note); 1028 knlist_destroy(&tp->t_outpoll.si_note); 1029 1030 cv_destroy(&tp->t_inwait); 1031 cv_destroy(&tp->t_outwait); 1032 cv_destroy(&tp->t_bgwait); 1033 cv_destroy(&tp->t_dcdwait); 1034 cv_destroy(&tp->t_outserwait); --- 1165 unchanged lines hidden --- |