diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-06-29 16:05:15 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-06-29 16:05:15 +0000 |
commit | 9b6d1736ee430b9f051cc7b5154bd55e9b936f2a (patch) | |
tree | 377d04cc365b8453c6e3d9fa05bcb7ba5a503ee3 /c/src/exec/libcsupport/src | |
parent | Patch from Eric Valette <valette@crf.canon.fr> to make librdbg work (diff) | |
download | rtems-9b6d1736ee430b9f051cc7b5154bd55e9b936f2a.tar.bz2 |
Patch from Chris Johns <cjohns@cybertec.com.au> to make sure the
ttyHead back link is set.
Diffstat (limited to 'c/src/exec/libcsupport/src')
-rw-r--r-- | c/src/exec/libcsupport/src/termios.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/c/src/exec/libcsupport/src/termios.c b/c/src/exec/libcsupport/src/termios.c index 06305b86ab..dea2608fa6 100644 --- a/c/src/exec/libcsupport/src/termios.c +++ b/c/src/exec/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; |