[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
Thu Aug 12 07:36:22 UTC 2010
https://www.rtems.org/bugzilla/show_bug.cgi?id=1662
--- Comment #11 from Sebastian Huber <sebastian.huber at embedded-brains.de> 2010-08-12 02:36:21 CDT ---
Let me explain the problem with the clean up during the last close. The
Termios driver is an example for a driver that will be opened by one thread,
but the read and write access may be issued by different threads concurrently.
The close may happen also concurrently (exit() may be called concurrently?). I
think a concurrent call to close() will lead to more problems, so I omit this
here. I think currently that the only way to avoid accesses to deleted
resources is to not delete anything during the last close. Instead we should
simply flush the output buffer.
--
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