/* Setting this flag to TRUE for a channel you have already closed can cause problems.  */
void g_io_channel_set_close_on_unref(GIOChannel *channel, gboolean do_close)
/* Setting this flag to TRUE for a channel you have already closed can cause problems.  */
void g_io_channel_set_close_on_unref(GIOChannel *channel, gboolean do_close)
{
  g_return_if_fail (channel != NULL);
  channel->close_on_unref = do_close;
}