mirror of
https://github.com/openvswitch/ovs
synced 2025-10-29 15:28:56 +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:
@@ -88,12 +88,6 @@ punix_open(const char *name UNUSED, char *suffix, struct pstream **pstreamp)
|
|||||||
return errno;
|
return errno;
|
||||||
}
|
}
|
||||||
|
|
||||||
error = set_nonblocking(fd);
|
|
||||||
if (error) {
|
|
||||||
close(fd);
|
|
||||||
return error;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (listen(fd, 10) < 0) {
|
if (listen(fd, 10) < 0) {
|
||||||
error = errno;
|
error = errno;
|
||||||
VLOG_ERR("%s: listen: %s", name, strerror(error));
|
VLOG_ERR("%s: listen: %s", name, strerror(error));
|
||||||
|
|||||||
@@ -90,12 +90,6 @@ punix_open(const char *name UNUSED, char *suffix, struct pvconn **pvconnp)
|
|||||||
return errno;
|
return errno;
|
||||||
}
|
}
|
||||||
|
|
||||||
error = set_nonblocking(fd);
|
|
||||||
if (error) {
|
|
||||||
close(fd);
|
|
||||||
return error;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (listen(fd, 10) < 0) {
|
if (listen(fd, 10) < 0) {
|
||||||
error = errno;
|
error = errno;
|
||||||
VLOG_ERR("%s: listen: %s", name, strerror(error));
|
VLOG_ERR("%s: listen: %s", name, strerror(error));
|
||||||
|
|||||||
Reference in New Issue
Block a user