Skip to content
Commit e86d0091 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

Unix domain/FIFOs: Fix a race condition between FIFO buffer operations and...

Unix domain/FIFOs:  Fix a race condition between FIFO buffer operations and the opening and closing of FIFOs which necessary when the FIFOs are used to support Unix domain, datagram sockets.  The default policy is the deallocate FIFO buffering when the last client closes the pipe.  When when used for datagram communicatinos, packets left in the FIFO will be lost.  Some like UDP read-ahead is needed:  The buffered data in the FIFO needs to be retained until the reader gets a chance to re-open the FIFO.  Added an ioctl (PIPEIOC_POLICY) to control the buffer policy. Default (0) is the legacy behavior; Unix domain datagram logic sets the alternative policy so that the packet data persists after the FIFO is closed.
parent 4205d685
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment