Commit 13e9cee1 authored by Matthieu Kermagoret's avatar Matthieu Kermagoret
Browse files

toto

parent 1b8f020b
......@@ -20,6 +20,7 @@
#include <errno.h>
#include <string.h>
#include <sys/socket.h>
#include <unistd.h>
#include "com/centreon/connector/ssh/socket_handle.hh"
#include "com/centreon/exceptions/basic.hh"
......@@ -52,6 +53,7 @@ socket_handle::~socket_handle() throw () {
* Close socket descriptor.
*/
void socket_handle::close() {
shutdown(_internal_handle, SHUT_RDWR);
::close(_internal_handle);
_internal_handle = -1;
return ;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment