set_close_on_unref


Description:

public void set_close_on_unref (bool do_close)

Whether to close the channel on the final unref of the IOChannel data structure.

The default value of this is true for channels created by g_io_channel_new_file (), and false for all other channels.

Setting this flag to true for a channel you have already closed can cause problems when the final reference to the IOChannel is dropped.

Parameters:

this

a IOChannel

do_close

Whether to close the channel on the final unref of the GIOChannel data structure.