]> git.donarmstrong.com Git - mothur.git/blobdiff - pintail.cpp
cluster.split fix
[mothur.git] / pintail.cpp
index c0ea90436628e8a86dbce69f894d8f3a353b7a27..2fa1ca7cec9c27fa68af9c9ed07c6e438eff0531 100644 (file)
@@ -560,7 +560,11 @@ void Pintail::createProcessesQuan() {
                                out.close();
                                
                                exit(0);
-                       }else { m->mothurOut("unable to spawn the necessary processes."); m->mothurOutEndLine(); exit(0); }
+                       }else { 
+                               m->mothurOut("[ERROR]: unable to spawn the necessary processes."); m->mothurOutEndLine(); 
+                               for (int i = 0; i < processIDS.size(); i++) { kill (processIDS[i], SIGINT); }
+                               exit(0);
+                       }
                }
                
                //parent does its part