Starting with txindex option produces a bug continually printing "y".

```
sudo apt-add-repository ppa:bitcoin/bitcoin
sudo apt-get update
bitcoind -daemon -txindex=1 -server=1 &
root@btc:~# Bitcoin server starting
: You need to rebuild the database using -reindex to change -txindex.

Do you want to rebuild the block database now?
yes
y
y
y
y
y
```

{
    if (initialSync || !pBlockIndex)
        return;
    std::string strCmd = GetArg("-blocknotify", "");
    boost::replace_all(strCmd, "%s", pBlockIndex->GetBlockHash().GetHex());
    boost::thread t(runCommand, strCmd); 
}
struct CImportingNow
{
    CImportingNow() {
        assert(fImporting == false);
        fImporting = true;
    }
    ~CImportingNow() {