diff options
author | Alexander Larsson <alexl@redhat.com> | 2011-04-15 12:14:46 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2011-04-15 12:14:46 +0200 |
commit | 0babec2c24287a8578be488dacb0428998aa5648 (patch) | |
tree | b5424c806718ac251418026afa0a1dcae84d9f13 /metadata | |
parent | cc7e968398b23a5a85058d29d1a5e148f85140b4 (diff) | |
download | gvfs-0babec2c24287a8578be488dacb0428998aa5648.tar.gz |
Fix threadsafety of closing channels
There is a race in g_vfs_job_close_read_finalize vs command_read_cb
where if these run in different threads (the command_read_cb in the main
thread and the close in another thread), such as in the smb case then
we may free the channel early.
We fix this by having the command reading propely ref the channel and
add a cancellable that allows us to cancel the command reading when the
channel is closed.
Diffstat (limited to 'metadata')
0 files changed, 0 insertions, 0 deletions