projects
/
satlib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ff4089
)
fix bug with zombie sat solver processes
author
bdemsky
<bdemsky@uci.edu>
Wed, 31 Dec 2014 14:22:50 +0000
(23:22 +0900)
committer
bdemsky
<bdemsky@uci.edu>
Wed, 31 Dec 2014 14:22:50 +0000
(23:22 +0900)
inc_solver.cc
patch
|
blob
|
history
diff --git
a/inc_solver.cc
b/inc_solver.cc
index 24c6e88fcb13030d99cf293998fcd2395dadc210..ebc54447f3f98854de8607065124816192c6a220 100644
(file)
--- 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)
- kill
pg
(solver_pid, SIGKILL);
+ kill(solver_pid, SIGKILL);
}
void IncrementalSolver::flushBuffer() {