2
0
mirror of https://github.com/openvswitch/ovs synced 2025-10-27 15:18:06 +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:
Ben Pfaff
2009-12-11 17:00:28 -08:00
parent 21a60ea97b
commit e6e6bdad78
2 changed files with 0 additions and 12 deletions

View File

@@ -88,12 +88,6 @@ punix_open(const char *name UNUSED, char *suffix, struct pstream **pstreamp)
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));

View File

@@ -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));