Kaydet (Commit) 9b15487b authored tarafından Bahadır Kandemir's avatar Bahadır Kandemir

Send SIGINT to cancel jobs

üst bab4ed78
...@@ -519,7 +519,7 @@ dbus_cancel() ...@@ -519,7 +519,7 @@ dbus_cancel()
log_debug(LOG_DBUS, "Cancel requested.\n"); log_debug(LOG_DBUS, "Cancel requested.\n");
for (i = 0; i < my_proc.nr_children; i++) { for (i = 0; i < my_proc.nr_children; i++) {
if (dbus_message_has_sender(my_proc.children[i].bus_msg, dbus_message_get_sender(my_proc.bus_msg))) { if (dbus_message_has_sender(my_proc.children[i].bus_msg, dbus_message_get_sender(my_proc.bus_msg))) {
kill(my_proc.children[i].pid, SIGKILL); kill(my_proc.children[i].pid, SIGINT);
count++; count++;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment