]> git.donarmstrong.com Git - mothur.git/blobdiff - summarysharedcommand.cpp
cluster.split fix
[mothur.git] / summarysharedcommand.cpp
index 32a9f7c2ebee2019ed3421eba21d42c4197087d0..956e0805ee7a20ff5266cf4eba67632dbec7d722 100644 (file)
@@ -508,7 +508,11 @@ int SummarySharedCommand::process(vector<SharedRAbundVector*> thisLookup, string
                                                        }
                                                        
                                                        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 do your part