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
```

uiInterface.InitMessage(_("Pruning blockstore..."));
            PruneAndFlush();
        }
    }
    
    if (mapArgs.count("-blocknotify"))
        uiInterface.NotifyBlockTip.connect(BlockNotifyCallback);
    std::vector<boost::filesystem::path> vImportFiles;
    if (mapArgs.count("-loadblock"))
    {
        BOOST_FOREACH(const std::string& strFile, mapMultiArgs["-loadblock"])
            vImportFiles.push_back(strFile);
    }
    threadGroup.create_thread(boost::bind(&ThreadImport, vImportFiles));
    
    bool fHaveGenesis = false;
    while (!fHaveGenesis && !fRequestShutdown) {
        {
            LOCK(cs_main);
            fHaveGenesis = (chainActive.Tip() != NULL);
        }
        if (!fHaveGenesis) {
            MilliSleep(10);
        }
    }
    
    if (!CheckDiskSpace())
        return false;
    if (!strErrors.str().empty())
        return InitError(strErrors.str());