diff options
author | maxim <maxim@FreeBSD.org> | 2005-09-15 13:20:39 +0000 |
---|---|---|
committer | maxim <maxim@FreeBSD.org> | 2005-09-15 13:20:39 +0000 |
commit | a2d069265211e690f09c916c842c7aec883b526f (patch) | |
tree | 4b8e5de6d1f6025ea571144e67548288627265d7 /tools/regression | |
parent | 99d897fe3cc2abf7ae2460f86b5250a5dad4a682 (diff) | |
download | FreeBSD-src-a2d069265211e690f09c916c842c7aec883b526f.zip FreeBSD-src-a2d069265211e690f09c916c842c7aec883b526f.tar.gz |
Remove checks for shutdown(2) on non-connected socket.
Diffstat (limited to 'tools/regression')
-rw-r--r-- | tools/regression/sockets/shutdown/shutdown.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/tools/regression/sockets/shutdown/shutdown.c b/tools/regression/sockets/shutdown/shutdown.c index b12a9f4..c4e884d 100644 --- a/tools/regression/sockets/shutdown/shutdown.c +++ b/tools/regression/sockets/shutdown/shutdown.c @@ -75,10 +75,6 @@ main(void) if (listen(listen_sock, -1) < 0) errx(-1, "listen() for listen socket: %s", strerror(errno)); - /* Shutdown(2) on not connected socket has to return ENOTCONN. */ - if ((shutdown(listen_sock, SHUT_RDWR) != -1) && (errno != ENOTCONN)) - errx(-1, "shutdown(2) for not connected socket does not " - "return ENOTCONN"); connect_sock = socket(PF_INET, SOCK_STREAM, 0); if (connect_sock == -1) errx(-1, "socket(PF_INET, SOCK_STREAM, 0) for connect " @@ -105,9 +101,6 @@ main(void) errx(-1, "shutdown(SHUT_WR) for connect socket: %s", strerror(errno)); - if ((shutdown(connect_sock, SHUT_RDWR) != -1) && (errno != ENOTCONN)) - errx(-1, "shutdown(2) for not connected socket does not " - "return ENOTCONN"); close(connect_sock); close(listen_sock); |