Gregory Nutt
|
f5558cd10e
|
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.
|
2015-01-30 11:14:24 -06:00 |
|
Gregory Nutt
|
dcce1649e3
|
Cosmetic updates to comments
|
2015-01-29 15:26:03 -06:00 |
|
Gregory Nutt
|
c335a7fe87
|
Unix domain: Various fixes to get apps/examplex/udgram working
|
2015-01-29 11:05:04 -06:00 |
|
Gregory Nutt
|
1593229612
|
Reorder statements: printf clobbers errno value
|
2015-01-29 10:08:04 -06:00 |
|
Gregory Nutt
|
f429f54aa2
|
apps/examples/udgram: Add a simple test of Unix domain datagram sockets
|
2015-01-28 14:28:11 -06:00 |
|