-#include <memcached.h>
+#include "common.h"
/*
This closes all connections (forces flush of input as well).
{
for (x= 0; x < ptr->number_of_hosts; x++)
{
- if (ptr->hosts[x].fd > 0)
+ if (ptr->hosts[x].fd != -1)
+ {
close(ptr->hosts[x].fd);
+ ptr->hosts[x].fd= -1;
+ }
}
}
+
ptr->connected= 0;
}