]> git.donarmstrong.com Git - mothur.git/blobdiff - secondarystructurecommand.cpp
added checks for ^C to quit command instead of program
[mothur.git] / secondarystructurecommand.cpp
index e23a0ac6a431ad14cdab21fb0bfa4276f4afd8c6..dc40611711062150b7046e1be665a34c87d87818 100644 (file)
@@ -120,6 +120,7 @@ int AlignCheckCommand::execute(){
 
                
                while(!in.eof()){
+                       if (m->control_pressed) { in.close(); out.close(); remove(outfile.c_str()); return 0; }
                        
                        Sequence seq(in);  gobble(in);
                        if (seq.getName() != "") {
@@ -135,6 +136,8 @@ int AlignCheckCommand::execute(){
                in.close();
                out.close();
                
+               if (m->control_pressed) {  remove(outfile.c_str()); return 0; }
+               
                m->mothurOutEndLine();
                m->mothurOut("Output File Name: "); m->mothurOutEndLine();
                m->mothurOut(outfile); m->mothurOutEndLine();