From 92c9dafbb1a7a8a890c7fc3a0a51cb63163f5e9e Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Fri, 3 Apr 2015 13:10:05 +0200 Subject: [PATCH] dbus: use terminate_proc --- src/main-ctl-dbus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main-ctl-dbus.c b/src/main-ctl-dbus.c index 8a281604..b1a100c8 100644 --- a/src/main-ctl-dbus.c +++ b/src/main-ctl-dbus.c @@ -1058,7 +1058,7 @@ static void method_disconnect_user_name(main_server_st * s, /* got the name. Try to disconnect */ list_for_each_safe(&s->proc_list.head, ctmp, cpos, list) { if (strcmp(ctmp->username, name) == 0) { - remove_proc(s, ctmp, 1); + terminate_proc(s, ctmp); status = 1; } } @@ -1117,7 +1117,7 @@ static void method_disconnect_user_id(main_server_st * s, struct dbus_ctx *ctx, /* got the ID. Try to disconnect */ list_for_each_safe(&s->proc_list.head, ctmp, cpos, list) { if (ctmp->pid == id) { - remove_proc(s, ctmp, 1); + terminate_proc(s, ctmp); status = 1; if (id != -1) break;