X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvDeformableRegistration.cxx;h=980b3e7d1f86633811d1f8afe08ce93a5214f199;hb=a8a4ad6db4f75c4e0ac66a9aca10ff47b424e919;hp=12a2959aa33679b8ab5f6bde9349e0d859eeba5c;hpb=ff4e821006c760607319ef7cc58dd9f4f17a7098;p=clitk.git diff --git a/vv/vvDeformableRegistration.cxx b/vv/vvDeformableRegistration.cxx index 12a2959..980b3e7 100644 --- a/vv/vvDeformableRegistration.cxx +++ b/vv/vvDeformableRegistration.cxx @@ -54,8 +54,8 @@ vvDeformableRegistration::vvDeformableRegistration(vvImage::Pointer image,unsign void vvDeformableRegistration::abort() { aborted=true; - std::system("killall deformableregistration"); - std::system("killall clitkVFMerge"); + int tempReturn = std::system("killall deformableregistration"); + tempReturn = std::system("killall clitkVFMerge"); } unsigned int vvDeformableRegistration::getProgress() @@ -71,16 +71,16 @@ void vvDeformableRegistration::cleanup(int frame_number) //remove temporary file for (int i=0; iGetOrigin()[2]; command << " -o " << output_filename << std::endl; DD(command.str()); - std::system(command.str().c_str()); + tempReturn = std::system(command.str().c_str()); cleanup(images.size()); if (aborted) { - std::system(("rm " + output_filename).c_str()); + tempReturn = std::system(("rm " + output_filename).c_str()); return; } vvImageReader::Pointer reader = vvImageReader::New();