mirror of
https://github.com/lxsang/antd-tunnel-publishers
synced 2024-12-26 01:48:21 +01:00
avoir zoombie processes after kikk
This commit is contained in:
parent
13b1d7fad2
commit
06fd912228
BIN
vterm/vterm
BIN
vterm/vterm
Binary file not shown.
@ -133,9 +133,15 @@ static void terminal_kill(int client_id, int should_delete)
|
|||||||
{
|
{
|
||||||
M_ERROR(MODULE_NAME, "Unable to kill process %d: %s", proc->pid, strerror(errno));
|
M_ERROR(MODULE_NAME, "Unable to kill process %d: %s", proc->pid, strerror(errno));
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
(void)waitpid(proc->pid, NULL, 0);
|
||||||
|
}
|
||||||
free(node->data);
|
free(node->data);
|
||||||
if(should_delete)
|
if(should_delete)
|
||||||
processes = bst_delete(processes, node->key);
|
processes = bst_delete(processes, node->key);
|
||||||
|
// wait child
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user