Switch to unified view

a/src/utils/execmd.h b/src/utils/execmd.h
...
...
155
155
156
    pid_t getChildPid();
156
    pid_t getChildPid();
157
157
158
    /** 
158
    /** 
159
     * Cancel/kill command. This can be called from another thread or
159
     * Cancel/kill command. This can be called from another thread or
160
     * from the advise callback, which could also raise an exception to 
160
     * from the advise callback, which could also raise an exception
161
     * accomplish the same thing
161
     * to accomplish the same thing. In the owner thread, any I/O loop
162
     * will exit at the next iteration, and the process will be waited for.
162
     */
163
     */
163
    void setKill();
164
    void setKill();
164
165
165
    /**
166
    /**
166
     * Get rid of current process (become ready for start). 
167
     * Get rid of current process (become ready for start). This will signal
168
     * politely the process to stop, wait a moment, then terminate it. This
169
     * is a blocking call.
167
     */
170
     */
168
    void zapChild();
171
    void zapChild();
169
172
173
    /**
174
     * Request process termination (SIGTERM or equivalent). This returns 
175
     * immediately
176
     */
177
    bool requestChildExit();
178
170
    ExecCmd();
179
     ExecCmd();
171
    ~ExecCmd();
180
    ~ExecCmd();
172
181
173
    /**
182
    /**
174
     * Utility routine: check if/where a command is found according to the
183
     * Utility routine: check if/where a command is found according to the
175
     * current PATH (or the specified one
184
     * current PATH (or the specified one