You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/08/24 09:25:30 UTC

[GitHub] [incubator-nuttx] jihandong opened a new pull request, #6912: drivers/pipes: notify POLLHUP if no readers.

jihandong opened a new pull request, #6912:
URL: https://github.com/apache/incubator-nuttx/pull/6912

   Signed-off-by: jihandong <ji...@xiaomi.com>
   
   ## Summary
   
   ## Impact
   
   ## Testing
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-nuttx] xiaoxiang781216 closed pull request #6912: drivers/pipes: notify POLLHUP if no readers.

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 closed pull request #6912: drivers/pipes: notify POLLHUP if no readers.
URL: https://github.com/apache/incubator-nuttx/pull/6912


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-nuttx] jihandong commented on pull request #6912: drivers/pipes: notify POLLHUP if no readers.

Posted by GitBox <gi...@apache.org>.
jihandong commented on PR #6912:
URL: https://github.com/apache/incubator-nuttx/pull/6912#issuecomment-1226715317

   > According to https://pubs.opengroup.org/onlinepubs/9699919799/functions/poll.html:
   > 
   > "A device has been disconnected, or a pipe or FIFO has been closed by the last process that had it open for writing. Once set, the hangup state of a FIFO shall persist until some process opens the FIFO for writing or until all read-only file descriptors for the FIFO are closed."
   > 
   > So, is this correct?
   
   Now in PIPE, if the reader is closed without POLHUP generated, the writer cannot know.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-nuttx] xiaoxiang781216 commented on pull request #6912: drivers/pipes: notify POLLHUP if no readers.

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 commented on PR #6912:
URL: https://github.com/apache/incubator-nuttx/pull/6912#issuecomment-1227184434

   @hartmannathan let's confirm how Linux handle this case.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org