mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
Remove redundant calls to set_nonblocking().
These set_nonblocking() calls are on a fd returned by make_unix_socket(), which has already set the fd nonblocking.
This commit is contained in:
@@ -90,12 +90,6 @@ punix_open(const char *name UNUSED, char *suffix, struct pvconn **pvconnp)
|
||||
return errno;
|
||||
}
|
||||
|
||||
error = set_nonblocking(fd);
|
||||
if (error) {
|
||||
close(fd);
|
||||
return error;
|
||||
}
|
||||
|
||||
if (listen(fd, 10) < 0) {
|
||||
error = errno;
|
||||
VLOG_ERR("%s: listen: %s", name, strerror(error));
|
||||
|
||||
Reference in New Issue
Block a user