X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=trimseqscommand.cpp;h=8aacd9d7c78b767acbf7c00ab92f945dff11dc2d;hp=4e7a12994f4854c487d036dd422aa1f3130e288c;hb=cbb336d5650cfe1f83a398a837794dcfbbbd3756;hpb=09ce41fb228c00d0f49896c66b2f2c5760914769 diff --git a/trimseqscommand.cpp b/trimseqscommand.cpp index 4e7a129..8aacd9d 100644 --- a/trimseqscommand.cpp +++ b/trimseqscommand.cpp @@ -714,7 +714,11 @@ int TrimSeqsCommand::createProcessesCreateTrim(string filename, string qFileName }else if (pid == 0){ driverCreateTrim(filename, qFileName, (trimFile + toString(getpid()) + ".temp"), (scrapFile + toString(getpid()) + ".temp"), (trimQFile + toString(getpid()) + ".temp"), (scrapQFile + toString(getpid()) + ".temp"), (groupFile + toString(getpid()) + ".temp"), fastaNames, qualNames, lines[process], qLines[process]); 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); + } } //force parent to wait until all the processes are done