|
a/src/utils/execmd.h |
|
b/src/utils/execmd.h |
|
... |
|
... |
144 |
* Cancel/kill command. This can be called from another thread or
|
144 |
* Cancel/kill command. This can be called from another thread or
|
145 |
* from the advise callback, which could also raise an exception to
|
145 |
* from the advise callback, which could also raise an exception to
|
146 |
* accomplish the same thing
|
146 |
* accomplish the same thing
|
147 |
*/
|
147 |
*/
|
148 |
void setKill() {m_killRequest = true;}
|
148 |
void setKill() {m_killRequest = true;}
|
|
|
149 |
|
|
|
150 |
/**
|
|
|
151 |
* Get rid of current process (become ready for start).
|
|
|
152 |
*/
|
|
|
153 |
void zapChild() {setKill(); (void)wait();}
|
149 |
|
154 |
|
150 |
ExecCmd()
|
155 |
ExecCmd()
|
151 |
: m_advise(0), m_provide(0), m_timeoutMs(1000)
|
156 |
: m_advise(0), m_provide(0), m_timeoutMs(1000)
|
152 |
{
|
157 |
{
|
153 |
reset();
|
158 |
reset();
|