[Bug 1542] pipe_control_t is not deallocated if fifo_open is attempted with O_WRONLY | O_NONBLOCK

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Tue Jun 1 09:49:44 UTC 2010


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


Bharath Suri <bharath.s.jois at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #761 is|0                           |1
           obsolete|                            |




--- Comment #3 from Bharath Suri <bharath.s.jois at gmail.com>  2010-06-01 04:49:43 ---
Created an attachment (id=762)
 --> (http://www.rtems.org/bugzilla/attachment.cgi?id=762)
Proposed change for rtems/cpukit/libfs/src/pipe/fifo.c

There was a mistake in the previous attachment.

Only pipe->writerCounter was incremented before checking the NONBLOCK flag.
pipe->Writers needs to be incremented too

I am right now verifying this change. Kindly let me know if this change has any
other unseeen (by me) impacts and other comments?

-- 
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