Changeset 42836e3 in rtems


Ignore:
Timestamp:
Nov 30, 2009, 1:23:58 PM (9 years ago)
Author:
Thomas Doerfler <Thomas.Doerfler@…>
Branches:
4.10, 4.11, master
Children:
8bca4fc
Parents:
5ad790f
Message:

Obtain output semaphore before drain output during close to prevent an infinite output drain loop

Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r5ad790f r42836e3  
    2929        * score/include/rtems/score/chain.h, sapi/include/rtems/chain.h: Added
    3030        defines for initialization of empty chains.
     31
     322009-11-30      Sebastian Huber <sebastian.huber@embedded-brains.de>
     33
     34        * libcsupport/src/termios.c: Obtain output semaphore before drain
     35        output during close to prevent an infinite output drain loop.
    3136
    32372009-11-30      Sebastian Huber <sebastian.huber@embedded-brains.de>
  • cpukit/libcsupport/src/termios.c

    r5ad790f r42836e3  
    375375                         * default: just flush output buffer
    376376                         */
     377                        sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
     378                        if (sc != RTEMS_SUCCESSFUL) {
     379                                rtems_fatal_error_occurred (sc);
     380                        }
    377381                        drainOutput (tty);
    378382                }
Note: See TracChangeset for help on using the changeset viewer.