From 6cec0cf819f2ad00f89543eb07b19add0b5739ba Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Fri, 3 Jul 2009 14:25:21 -0300 Subject: [PATCH] Use close instead of shutdown. The difference is that close will push the remaining data to be sent before closing the connection. --- hcconn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hcconn.c b/hcconn.c index 3e3f52f..aac7cc1 100644 --- 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); } -- 2.20.1