From b38b75bbb4be71792b02ea9bb48d313d92158219 Mon Sep 17 00:00:00 2001 From: Emanuele Giaquinta Date: Fri, 23 Oct 2009 21:17:03 +0000 Subject: [PATCH] Add forgotten g_io_channel_set_close_on_unref call to close the config file fd after saving, patch by Sven Wegener. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5101 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/lib-config/write.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib-config/write.c b/src/lib-config/write.c index 85bd0406..37e51f09 100644 --- a/src/lib-config/write.c +++ b/src/lib-config/write.c @@ -314,6 +314,7 @@ int config_write(CONFIG_REC *rec, const char *fname, int create_mode) rec->handle = g_io_channel_unix_new(fd); g_io_channel_set_encoding(rec->handle, NULL, NULL); + g_io_channel_set_close_on_unref(rec->handle, TRUE); rec->tmp_indent_level = 0; rec->tmp_last_lf = TRUE; ret = config_write_block(rec, rec->mainnode, FALSE, TRUE);