Use close instead of shutdown.
[cascardo/rnetproxy.git] / hcconn.c
index 3e3f52f..aac7cc1 100644 (file)
--- a/hcconn.c
+++ b/hcconn.c
@@ -97,7 +97,7 @@ hc_conn_channel_close (gpointer data)
   struct channel_layer *layer = data;
   int fd = g_io_channel_unix_get_fd (layer->channel);
   g_source_remove (layer->watch);
-  shutdown (fd, SHUT_RDWR);
+  close (fd);
   g_io_channel_unref (layer->channel);
   g_slice_free (struct channel_layer, layer);
 }