pkarashchenko commented on a change in pull request #5475:
URL: https://github.com/apache/incubator-nuttx/pull/5475#discussion_r808851731



##########
File path: drivers/pipes/pipe_common.c
##########
@@ -232,19 +232,18 @@ int pipecommon_open(FAR struct file *filep)
       dev->d_nreaders++;
     }
 
-  /* If opened for read-only, then wait for either (1) at least one writer
-   * on the pipe (policy == 0), or (2) until there is buffered data to be
-   * read (policy == 1).
-   */
+  while (!(filep->f_oflags & O_NONBLOCK) &&        /* Non-blocking */

Review comment:
       ```suggestion
     while ((filep->f_oflags & O_NONBLOCK) == 0 &&        /* Non-blocking */
   ```




-- 
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-unsubscr...@nuttx.apache.org

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


Reply via email to