]> git.donarmstrong.com Git - mothur.git/blobdiff - mothur.cpp
modified sequence class to read fasta files with comments. this required modification...
[mothur.git] / mothur.cpp
index 1c0c98f9f1caf4cec5de25f4c66ce7f9a3a3af8f..4e064b142d896cb1060d98c9574e42a4355a9efb 100644 (file)
@@ -77,7 +77,7 @@ int main(int argc, char *argv[]){
                                
                //srand(54321);
                srand( (unsigned)time( NULL ) );
-
+               
                Engine* mothur;
                bool bail = 0;
                string input;
@@ -92,9 +92,16 @@ int main(int argc, char *argv[]){
                        }
                }
                else{
-                       mothur = new InteractEngine(argv[0]);           
+                       mothur = new InteractEngine(argv[0]);   
                }
+               
+               //used to intercept the terminate signal, so instead of terminating mothur it will end a command
+               //void (*prev_fn)(int);
+               //prev_fn = signal(SIGTERM, mothur->terminateCommand(0));
+               
+               //if (prev_fn==SIG_IGN) signal (SIGTERM,SIG_IGN);
 
+               
                while(bail == 0)                {       bail = mothur->getInput();                      }
        
                delete mothur;