From e6e6bdad78300b27b5f42567c03c092e7bad45e9 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 11 Dec 2009 17:00:28 -0800 Subject: [PATCH] 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. --- lib/stream-unix.c | 6 ------ lib/vconn-unix.c | 6 ------ 2 files changed, 12 deletions(-) diff --git a/lib/stream-unix.c b/lib/stream-unix.c index a5dfd55b8..9046da154 100644 --- a/lib/stream-unix.c +++ b/lib/stream-unix.c @@ -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)); diff --git a/lib/vconn-unix.c b/lib/vconn-unix.c index f24c84640..f637ca0e1 100644 --- a/lib/vconn-unix.c +++ b/lib/vconn-unix.c @@ -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)); -- 2.43.0