Browse Source

Igr: fix non-blocking mode for read end of process pipe

Davin McCall 1 month ago
parent
commit
5939f45513
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/igr-tests/igr.h

+ 1 - 1
src/igr-tests/igr.h

@@ -99,7 +99,7 @@ public:
         if (fcntl(fds[0], F_SETFD, FD_CLOEXEC) != 0) {
             throw std::system_error(errno, std::generic_category(), "pipe_consume_buffer: fcntl");
         }
-        if (fcntl(fds[0], F_SETFL, O_ASYNC) != 0) {
+        if (fcntl(fds[0], F_SETFL, O_NONBLOCK) != 0) {
             throw std::system_error(errno, std::generic_category(), "pipe_consume_buffer: fcntl");
         }