Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

unix: Remove assert in uv__pipe_accept

This assert unnecessarily prevents people from using the pipe_wrap
class in node to send file descriptors over sockets.
  • Loading branch information...
isaacs committed Jan 30, 2012
1 parent f9b478c commit 98c0498dbc00850d8d1a01c4111d143d80d96a9b
Showing with 0 additions and 1 deletion.
  1. +0 −1 src/unix/pipe.c
@@ -251,7 +251,6 @@ void uv__pipe_accept(EV_P_ ev_io* watcher, int revents) {
pipe = watcher->data;

assert(pipe->type == UV_NAMED_PIPE);
assert(pipe->pipe_fname != NULL);

sockfd = uv__accept(pipe->fd, (struct sockaddr *)&saddr, sizeof saddr);
if (sockfd == -1) {

0 comments on commit 98c0498

Please sign in to comment.
You can’t perform that action at this time.