From 7a84c4b87abe64978687b69f8f6407a8651a5044 Mon Sep 17 00:00:00 2001 From: bdemsky Date: Wed, 31 Dec 2014 23:22:50 +0900 Subject: [PATCH] fix bug with zombie sat solver processes --- inc_solver.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/inc_solver.cc b/inc_solver.cc index 24c6e88..ebc5444 100644 --- a/inc_solver.cc +++ b/inc_solver.cc @@ -100,7 +100,6 @@ void IncrementalSolver::createSolver() { (dup2(from_pipe[1], IS_OUT_FD) == -1)) { fprintf(stderr, "Error duplicating pipes\n"); } - setsid(); execlp(SATSOLVER, SATSOLVER, NULL); fprintf(stderr, "execlp Failed\n"); } else { @@ -117,7 +116,7 @@ void IncrementalSolver::killSolver() { close(from_solver_fd); //Stop the solver if (solver_pid > 0) - killpg(solver_pid, SIGKILL); + kill(solver_pid, SIGKILL); } void IncrementalSolver::flushBuffer() { -- 2.34.1