David 'Digit' Turner e2126652a3 Make "repo sync -j<count>" stop properly on Ctrl-C.
The threaded 'repo sync' implementation would very often freeze the
process when interrupted by the user with Ctrl-C. The only solution
being to kill -9 the process explicitly from another terminal.

The reason for this is best explained here:

http://snakesthatbite.blogspot.fr/2010/09/cpython-threading-interrupting.html

This patch makes all helper sync threads 'daemon', which allows the
process to terminate immediately on Ctrl-C.

Note that this will forcefully kill all threads in case of interruption; this
is generally a bad thing, but:

  1/ This is equivalent to calling kill -9 in another terminal, which
     is the _only_ thing that can currently stop the process.

  2/ There doesn't seem to be a way to tell the worker threads to
     gently stop when they are in a blocking operation anyway (even
     in the non-threaded case).

+ Do the same for "repo status -j<count>".

Change-Id: Ieaf45b0eacee36f35427f8edafd87415c2aa7be4
2012-09-05 11:38:41 -07:00
..
2008-10-21 07:00:00 -07:00
2012-08-23 12:15:26 +02:00
2012-08-23 12:15:26 +02:00
2012-08-23 12:15:26 +02:00
2011-10-11 15:23:41 -07:00
2011-03-16 12:55:44 -07:00
2012-07-31 22:08:32 -07:00
2008-10-21 07:00:00 -07:00
2012-08-23 12:15:26 +02:00
2010-05-17 09:58:55 -07:00
2012-07-28 15:44:05 -07:00