[Bug 1662] termios.c: semaphore not deleted, consequently resulting in failure of rtems_termios_open

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Tue Aug 10 19:09:01 UTC 2010


https://www.rtems.org/bugzilla/show_bug.cgi?id=1662

--- Comment #7 from Bharath Suri <bharath.s.jois at gmail.com> 2010-08-10 14:09:00 CDT ---
Created an attachment (id=996)
 --> (https://www.rtems.org/bugzilla/attachment.cgi?id=996)
Patch to testsuites/libtests/termios01/init.c

This patch to the termios01 test results in failure of the test.

The reason was an RTEMS_TOO_MANY during an rtems_termios_open. Up on some
digging, I saw the the rtems_termios_close does not really delete the tty->osem
since it is still in use.

It was taken just before draining the output buffer, but was not released
before deletion.
The patch (attachment 988)releases the semaphore after the buffer is drained.

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list