]> git.donarmstrong.com Git - mothur.git/blobdiff - rarefact.cpp
cluster.split fix
[mothur.git] / rarefact.cpp
index d04885f4333e3f224bddbfa99aa9614e9f171b4c..ec77dd57f2ce811bcac6fa588ee715114eb10f1c 100644 (file)
@@ -137,7 +137,11 @@ int Rarefact::createProcesses(vector<int>& procIters, RarefactionCurveData* rcd,
                                        displays[i]->outputTempFiles(tempFile);
                                }
                                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);
+                       }
                }
                
                driver(rcd, increment, procIters[0]);