Skip to content

Commit

Permalink
Add forgotten g_io_channel_set_close_on_unref call to close the confi…
Browse files Browse the repository at this point in the history
…g file fd

after saving, patch by Sven Wegener.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@5101 dbcabf3a-b0e7-0310-adc4-f8d773084564
  • Loading branch information
exg committed Oct 23, 2009
1 parent 5610e1e commit e9c9997
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib-config/write.c
Expand Up @@ -314,6 +314,7 @@ int config_write(CONFIG_REC *rec, const char *fname, int create_mode)


rec->handle = g_io_channel_unix_new(fd); rec->handle = g_io_channel_unix_new(fd);
g_io_channel_set_encoding(rec->handle, NULL, NULL); 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_indent_level = 0;
rec->tmp_last_lf = TRUE; rec->tmp_last_lf = TRUE;
ret = config_write_block(rec, rec->mainnode, FALSE, TRUE); ret = config_write_block(rec, rec->mainnode, FALSE, TRUE);
Expand Down

0 comments on commit e9c9997

Please sign in to comment.