From a995e7215dfe89ab5f6d4feb951c5fbc2b616767 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Thu, 30 Aug 2012 11:28:36 +0200 Subject: [PATCH] Only sockets can be shut down. --- lib/socket.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/socket.cpp b/lib/socket.cpp index 7e6daf02..424460d4 100644 --- a/lib/socket.cpp +++ b/lib/socket.cpp @@ -83,12 +83,10 @@ void Socket::Connection::close(){ sock = -1; } if (pipes[0] != -1){ - shutdown(pipes[0], SHUT_RDWR); ::close(pipes[0]); pipes[0] = -1; } if (pipes[1] != -1){ - shutdown(pipes[1], SHUT_RDWR); ::close(pipes[1]); pipes[1] = -1; }