mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2024-09-21 10:27:19 +00:00
use remove_proc() instead of user_disconnected() when killing children.
This commit is contained in:
parent
3dfeab0174
commit
194462a600
@ -581,14 +581,13 @@ void clear_lists(main_server_st *s)
|
||||
|
||||
static void kill_children(main_server_st* s)
|
||||
{
|
||||
struct proc_st *ctmp = NULL;
|
||||
struct proc_st *ctmp = NULL, *cpos;
|
||||
|
||||
/* kill the security module server */
|
||||
kill(s->sec_mod_pid, SIGTERM);
|
||||
list_for_each(&s->proc_list.head, ctmp, list) {
|
||||
list_for_each_safe(&s->proc_list.head, ctmp, cpos, list) {
|
||||
if (ctmp->pid != -1) {
|
||||
kill(ctmp->pid, SIGTERM);
|
||||
user_disconnected(s, ctmp);
|
||||
remove_proc(s, ctmp, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user