diff options
author | David Kalnischkies <david@kalnischkies.de> | 2014-05-30 15:58:30 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2014-05-30 15:58:30 +0200 |
commit | 5681b3fc2a8e35a12cd7c8e94013611211188459 (patch) | |
tree | 04d5447d4971062420d5a1e5789bb433a5e9dc26 /apt-pkg/edsp.h | |
parent | 58377ceb4b62e8f50ddae8f17ce1511e4bf79a18 (diff) |
check exit status of external solvers
Solvers are supposed to exit successfully even if they haven't found a
solution, but a solver which fails drastically (like e.g. segfaults)
should be detected and dealt with accordingly instead of ignored.
Diffstat (limited to 'apt-pkg/edsp.h')
-rw-r--r-- | apt-pkg/edsp.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apt-pkg/edsp.h b/apt-pkg/edsp.h index f3092d3c6..9e833556a 100644 --- a/apt-pkg/edsp.h +++ b/apt-pkg/edsp.h @@ -205,10 +205,10 @@ public: * \param[out] solver_in will be the stdin of the solver * \param[out] solver_out will be the stdout of the solver * - * \return true if the solver could be started and the pipes - * are set up correctly, otherwise false and the pipes are invalid + * \return PID of the started solver or 0 if failure occurred */ - bool static ExecuteSolver(const char* const solver, int *solver_in, int *solver_out); + pid_t static ExecuteSolver(const char* const solver, int * const solver_in, int * const solver_out, bool /*overload*/); + APT_DEPRECATED bool static ExecuteSolver(const char* const solver, int *solver_in, int *solver_out); /** \brief call an external resolver to handle the request * |