Skip to content

Commit

Permalink
Fix a (very old) cut-and-paste-o.
Browse files Browse the repository at this point in the history
  • Loading branch information
kr committed Jul 15, 2009
1 parent 7139efe commit 74b1e53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ make_server_socket(struct in_addr host_addr, int port)
if (flags < 0) return twarn("getting flags"), close(fd), -1;

r = fcntl(fd, F_SETFL, flags | O_NONBLOCK);
if (flags < 0) return twarn("setting O_NONBLOCK"), close(fd), -1;
if (r == -1) return twarn("setting O_NONBLOCK"), close(fd), -1;

flags = 1;
setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &flags, sizeof flags);
Expand Down

0 comments on commit 74b1e53

Please sign in to comment.