mirror of
https://github.com/apache/nuttx.git
synced 2026-08-08 14:07:17 +00:00
For POLICY_0, when a pipe only has a reader and no writer, if the pipe is empty, set POLLHUP. For POLICY_1, when a pipe only has a reader but no writer, if the pipe is empty, POLLHUP will not be set. This change corrects poll() behavior to match the two pipe policies. No API changes. Signed-off-by: yukangzhi <yukangzhi@xiaomi.com> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| fifo.c | ||
| Kconfig | ||
| Make.defs | ||
| pipe.c | ||
| pipe_common.c | ||
| pipe_common.h | ||