Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

SetBlocking should set blocking, not toggle it

  • Loading branch information...
commit 1a1214866ff4d302833a0b7a0b56a9252aff9786 1 parent e9aacd4
@isaacs isaacs authored ry committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/node_child_process.cc
View
2  src/node_child_process.cc
@@ -36,7 +36,7 @@ static inline int SetNonBlocking(int fd) {
static inline int SetBlocking(int fd) {
int flags = fcntl(fd, F_GETFL, 0);
- int r = fcntl(fd, F_SETFL, flags ^ O_NONBLOCK);
+ int r = fcntl(fd, F_SETFL, flags & ~O_NONBLOCK);
if (r != 0) perror("SetBlocking()");
return r;
}
Please sign in to comment.
Something went wrong with that request. Please try again.