From: Thadeu Lima de Souza Cascardo Date: Fri, 3 Jul 2009 17:25:21 +0000 (-0300) Subject: Use close instead of shutdown. X-Git-Tag: v0.1.3~45 X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Frnetproxy.git;a=commitdiff_plain;h=6cec0cf819f2ad00f89543eb07b19add0b5739ba Use close instead of shutdown. The difference is that close will push the remaining data to be sent before closing the connection. --- 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); }