bitcoin/bitcoin — pull request #959 by rebroad (2012-03-20 16:34:21+00:00)
Title: Added ability to respond to signals during Block Loading stage.

As the Loading of the Block Index can take several minutes, it's possible the user might want to exit the process during this, and so far the only way was with a kill -9. This small change allows the Block Index Loading to watch out for a requested exit, and abort during the process.

It's been tested on my computer so far.