commit | 0048b69c038306fe74408a63cdd0773b0d86a8fe | [log] [tgz] |
---|---|---|
author | Doug Anderson <dianders@google.com> | Tue Dec 21 13:39:23 2010 -0800 |
committer | Doug Anderson <dianders@google.com> | Tue Dec 21 13:39:23 2010 -0800 |
tree | ca5fb88b7b5a6a196d066172f4e59f37e626f5cf | |
parent | 2b8db3ce3e7344b9f3b5216637c5af0d54be5656 [diff] |
Fixed race condition in 'repo sync -jN' that would open multiple masters. This fixes the SSH Control Masters to be managed in a thread-safe fashion. This is important because "repo sync -jN" uses threads to sync more than one repository at the same time. The problem didn't show up earlier because it was masked if all of the threads tried to connect to the same host that was used on the "repo init" line.