Skip to content

Commit

Permalink
now that we call new_socket there is no nee to set O_NONBLOCK separ…
Browse files Browse the repository at this point in the history
…ately
  • Loading branch information
kazuho committed Jun 28, 2023
1 parent 46c35da commit c046b60
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,6 @@ static int run_client(int fd, struct sockaddr *sa, const char *host)
int newfd = new_socket(local.sa.sa_family);
if (newfd != -1) {
close(fd);
fcntl(newfd, F_SETFL, O_NONBLOCK);
fd = newfd;
}
}
Expand Down

0 comments on commit c046b60

Please sign in to comment.