Lines 20-27
Link Here
|
20 |
|
20 |
|
21 |
#include "widget.hh" |
21 |
#include "widget.hh" |
22 |
|
22 |
|
23 |
#include <sys/wait.h> // for W_EXITCODE |
|
|
24 |
|
25 |
#include <exception> |
23 |
#include <exception> |
26 |
#include <new> |
24 |
#include <new> |
27 |
#include <string> |
25 |
#include <string> |
Lines 235-241
void
Link Here
|
235 |
Widget::dispose() noexcept |
233 |
Widget::dispose() noexcept |
236 |
{ |
234 |
{ |
237 |
if (m_terminal->terminate_child()) { |
235 |
if (m_terminal->terminate_child()) { |
238 |
int status = W_EXITCODE(0, SIGKILL); |
236 |
int status = (0) << 8 | (SIGKILL); // W_EXITCODE(ret, sig) |
239 |
emit_child_exited(status); |
237 |
emit_child_exited(status); |
240 |
} |
238 |
} |
241 |
} |
239 |
} |
242 |
- |
|
|