]> git.donarmstrong.com Git - mothur.git/blobdiff - metastatscommand.cpp
cluster.split fix
[mothur.git] / metastatscommand.cpp
index 2078584426ffecc4a445a7486825af7fc7bb0077..a734ce3a6c9e01a89f6d99e1ff2bd1236b1c944a 100644 (file)
@@ -366,7 +366,11 @@ int MetaStatsCommand::process(vector<SharedRAbundVector*>& thisLookUp){
                                                }else if (pid == 0){
                                                        driver(lines[process].start, lines[process].num, thisLookUp);
                                                        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);
+                                               }
                                        }
                                        
                                        //do my part