writeCommand("( exit )",false);//do not wait for success because it does not matter at this point and may cause problems if the solver is not running properly
#ifndef WINDOWS
if(processIdOfSolver!=0){
//Since the process has been open successfully, it means that we have to close our fds
//Since the process has been opened successfully, it means that we have to close our fds
close(fromSolver);
close(toSolver);
//todo make sure that the process exits waitpid kill(pid, ..);
kill(processIdOfSolver,SIGTERM);
waitpid(processIdOfSolver,nullptr,0);//make sure the process has exited
}
#endif
}
@ -299,6 +309,17 @@ namespace storm {
STORM_LOG_DEBUG("Solver Output '"<<solverOutput<<"' did not end with newline symbol (\\n). Since we assume that this should be the case, we will wait for more output from the solver");