Kill kms server instead of sigint, fixes being stuck with pkexec

This commit is contained in:
dec05eba 2023-11-18 14:15:54 +01:00
parent 2cbcde19f6
commit 9e6f6f67d0

View File

@ -323,9 +323,7 @@ void cleanup_initial_socket(gsr_kms_client *self, bool kill_server) {
}
if(kill_server && self->kms_server_pid != -1) {
kill(self->kms_server_pid, SIGINT);
int status;
waitpid(self->kms_server_pid, &status, 0);
kill(self->kms_server_pid, SIGKILL);
self->kms_server_pid = -1;
}