Replace deprecated g_io_channel_close with g_io_channel_shutdown.

g_io_channel_close flushes the buffer and does not return errors.
g_io_channel_shutdown(handle, TRUE, NULL) keeps that behavior.
This commit is contained in:
David Hill 2014-06-15 15:23:29 -04:00
commit 138d4f4555
4 changed files with 9 additions and 9 deletions

View file

@ -185,7 +185,7 @@ static void process_destroy(PROCESS_REC *rec, int status)
exec_wi_destroy(rec->target_item);
line_split_free(rec->databuf);
g_io_channel_close(rec->in);
g_io_channel_shutdown(rec->in, TRUE, NULL);
g_io_channel_unref(rec->in);
net_sendbuffer_destroy(rec->out, TRUE);