Fix possible deadlock on reconnection

Reported by Florian Zumbiehl
This commit is contained in:
Miklos Szeredi 2011-03-25 13:38:39 +01:00
parent 6d5e12e1b6
commit eac5268e87
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-03-25 Miklos Szeredi <miklos@szeredi.hu>
* Fix possible deadlock on reconnection. Reported by Florian
Zumbiehl
2011-01-25 Miklos Szeredi <miklos@szeredi.hu>
* Fix cleanup when ssh connection is terminated. This prevents

View File

@ -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) {