X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=pintail.cpp;h=2fa1ca7cec9c27fa68af9c9ed07c6e438eff0531;hp=c0ea90436628e8a86dbce69f894d8f3a353b7a27;hb=cbb336d5650cfe1f83a398a837794dcfbbbd3756;hpb=09ce41fb228c00d0f49896c66b2f2c5760914769 diff --git a/pintail.cpp b/pintail.cpp index c0ea904..2fa1ca7 100644 --- a/pintail.cpp +++ b/pintail.cpp @@ -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