summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-06-29 16:05:15 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-06-29 16:05:15 +0000
commit9b6d1736ee430b9f051cc7b5154bd55e9b936f2a (patch)
tree377d04cc365b8453c6e3d9fa05bcb7ba5a503ee3 /cpukit
parentPatch from Eric Valette <valette@crf.canon.fr> to make librdbg work (diff)
downloadrtems-9b6d1736ee430b9f051cc7b5154bd55e9b936f2a.tar.bz2
Patch from Chris Johns <cjohns@cybertec.com.au> to make sure the
ttyHead back link is set.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/libcsupport/src/termios.c3
1 files changed, 2 insertions, 1 deletions
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;