From 50ac994cf21d250c9a8a2e8f19a6d6d6ed71fba1 Mon Sep 17 00:00:00 2001 From: click Date: Tue, 20 Apr 2010 19:51:20 +0200 Subject: Revert changes done in re6b772bbb596137e7f83dabaab46fc501fb6a8f5 - reason: breaks readline-history capability on linux This is essentially a bug in MySQLs InnoDB database storage engine where connectionhandlers does not decrement the servers threadcount while trying to exit properly. Bugreport exists on mySQL bugtracker. --HG-- branch : trunk --- src/trinitycore/CliRunnable.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/trinitycore/CliRunnable.cpp') diff --git a/src/trinitycore/CliRunnable.cpp b/src/trinitycore/CliRunnable.cpp index 0fca32e355f..92923b3a6a4 100644 --- a/src/trinitycore/CliRunnable.cpp +++ b/src/trinitycore/CliRunnable.cpp @@ -393,15 +393,6 @@ void CliRunnable::run() { fflush(stdout); - // Safe exit thread - #ifdef linux - while (!kb_hit_return() && !World::IsStopped()) - // With this, we limit CLI to 10commands/second - usleep(100); - if (World::IsStopped()) - break; - #endif - char *command_str ; // = fgets(commandbuf,sizeof(commandbuf),stdin); #if PLATFORM == WINDOWS -- cgit v1.2.3