X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=engine.cpp;fp=engine.cpp;h=dd61de67d36974af09bf700879c8b59821ebd83f;hb=c69e2e9749626cfbf1d6cb0125ae94f869e00b18;hp=ad7a7ad73ad03660976137117b15035d2d2b4757;hpb=c887ae6cd9f1c5b6e1b73a1384f154392be4efa3;p=mothur.git diff --git a/engine.cpp b/engine.cpp index ad7a7ad..dd61de6 100644 --- a/engine.cpp +++ b/engine.cpp @@ -152,6 +152,10 @@ bool InteractEngine::getInput(){ //executes valid command Command* command = cFactory->getCommand(commandName, options); quitCommandCalled = command->execute(); + + //if we aborted command + if (quitCommandCalled == 2) { mout->mothurOut("[ERROR]: did not complete " + commandName + "."); mout->mothurOutEndLine(); } + mout->control_pressed = 0; mout->executing = false; @@ -291,7 +295,7 @@ bool BatchEngine::getInput(){ //CommandFactory cFactory; int quitCommandCalled = 0; int count = 0; - while(quitCommandCalled == 0){ + while(quitCommandCalled != 1){ #ifdef USE_MPI int pid, processors; @@ -358,6 +362,10 @@ bool BatchEngine::getInput(){ //executes valid command Command* command = cFactory->getCommand(commandName, options); quitCommandCalled = command->execute(); + + //if we aborted command + if (quitCommandCalled == 2) { mout->mothurOut("[ERROR]: did not complete " + commandName + "."); mout->mothurOutEndLine(); } + mout->control_pressed = 0; mout->executing = false; @@ -474,7 +482,7 @@ bool ScriptEngine::getInput(){ //CommandFactory cFactory; int quitCommandCalled = 0; - while(quitCommandCalled == 0){ + while(quitCommandCalled != 1){ #ifdef USE_MPI int pid, processors; @@ -542,6 +550,10 @@ bool ScriptEngine::getInput(){ //executes valid command Command* command = cFactory->getCommand(commandName, options); quitCommandCalled = command->execute(); + + //if we aborted command + if (quitCommandCalled == 2) { mout->mothurOut("[ERROR]: did not complete " + commandName + "."); mout->mothurOutEndLine(); } + mout->control_pressed = 0; mout->executing = false;