From 9b6d1736ee430b9f051cc7b5154bd55e9b936f2a Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 29 Jun 2000 16:05:15 +0000 Subject: Patch from Chris Johns to make sure the ttyHead back link is set. --- cpukit/libcsupport/src/termios.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpukit') diff --git a/cpukit/libcsupport/src/termios.c b/cpukit/libcsupport/src/termios.c index 06305b86ab..dea2608fa6 100644 --- a/cpukit/libcsupport/src/termios.c +++ b/cpukit/libcsupport/src/termios.c @@ -188,11 +188,12 @@ rtems_termios_open ( rtems_semaphore_release (rtems_termios_ttyMutex); return RTEMS_NO_MEMORY; } + if (rtems_termios_ttyHead) + rtems_termios_ttyHead->back = tty; tty->forw = rtems_termios_ttyHead; rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) rtems_termios_ttyTail = tty; - tty->minor = minor; tty->major = major; -- cgit v1.2.3