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) {
|
||||
if (id != 0) { /* id */
|
||||
if (id != ctmp->pid) {
|
||||
if (user == NULL) { /* id */
|
||||
if (id == 0 || id == -1 || id != ctmp->pid) {
|
||||
continue;
|
||||
}
|
||||
} else { /* username */
|
||||
|
||||
Reference in New Issue
Block a user