Set return code to avoid spurious errors.

This commit is contained in:
Joel Sherrill
1997-11-10 17:31:11 +00:00
parent 87926ab663
commit 52e1708d71
3 changed files with 3 additions and 0 deletions

View File

@@ -266,6 +266,7 @@ rtems_termios_close (void *arg)
struct rtems_termios_tty *tty = args->iop->data1;
rtems_status_code sc;
args->ioctl_return = 0;
sc = rtems_semaphore_obtain (ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);