|
a/src/utils/execmd.cpp |
|
b/src/utils/execmd.cpp |
|
... |
|
... |
188 |
{
|
188 |
{
|
189 |
setKill();
|
189 |
setKill();
|
190 |
(void)wait();
|
190 |
(void)wait();
|
191 |
}
|
191 |
}
|
192 |
|
192 |
|
|
|
193 |
bool ExecCmd::requestChildExit()
|
|
|
194 |
{
|
|
|
195 |
if (m->m_pid > 0) {
|
|
|
196 |
if (kill(m->m_pid, SIGTERM) == 0)
|
|
|
197 |
return true;
|
|
|
198 |
}
|
|
|
199 |
return false;
|
|
|
200 |
}
|
193 |
|
201 |
|
194 |
/* From FreeBSD's which command */
|
202 |
/* From FreeBSD's which command */
|
195 |
static bool exec_is_there(const char *candidate)
|
203 |
static bool exec_is_there(const char *candidate)
|
196 |
{
|
204 |
{
|
197 |
struct stat fin;
|
205 |
struct stat fin;
|