mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-13 18:12:03 +08:00
do not give information on zombie processes
This commit is contained in:
@@ -631,8 +631,8 @@ static void info_common(main_server_st * s, DBusConnection * conn,
|
|||||||
}
|
}
|
||||||
|
|
||||||
list_for_each(&s->proc_list.head, ctmp, list) {
|
list_for_each(&s->proc_list.head, ctmp, list) {
|
||||||
if (id != 0) { /* id */
|
if (user == NULL) { /* id */
|
||||||
if (id != ctmp->pid) {
|
if (id == 0 || id == -1 || id != ctmp->pid) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
} else { /* username */
|
} else { /* username */
|
||||||
|
|||||||
Reference in New Issue
Block a user