diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2011-03-25 13:38:39 +0100 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2011-03-25 13:38:39 +0100 |
commit | eac5268e87a9ffeefaa5edcd40392e14cd5aa1e3 (patch) | |
tree | 2cf597f4cfd9ff2dc1584a23444a055caa49517c /sshfs.c | |
parent | 6d5e12e1b6abc2f07af547478f2497e06df988b1 (diff) | |
download | sshfs-eac5268e87a9ffeefaa5edcd40392e14cd5aa1e3.tar sshfs-eac5268e87a9ffeefaa5edcd40392e14cd5aa1e3.tar.gz sshfs-eac5268e87a9ffeefaa5edcd40392e14cd5aa1e3.tar.bz2 sshfs-eac5268e87a9ffeefaa5edcd40392e14cd5aa1e3.zip |
Fix possible deadlock on reconnection
Reported by Florian Zumbiehl
Diffstat (limited to 'sshfs.c')
-rw-r--r-- | sshfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1319,6 +1319,8 @@ static void *process_requests(void *data_) close_conn(); g_hash_table_foreach_remove(sshfs.reqtab, (GHRFunc) clean_req, NULL); sshfs.connver ++; + sshfs.outstanding_len = 0; + pthread_cond_broadcast(&sshfs.outstanding_cond); pthread_mutex_unlock(&sshfs.lock); if (!sshfs.reconnect) { |