Only sockets can be shut down.
This commit is contained in:
parent
870f71333b
commit
a995e7215d
1 changed files with 0 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue