mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-03-31 09:17:04 +09:00
Workaround amd driver bug: kill notifications with SIGINT instead of SIGKILL
This commit is contained in:
@@ -512,7 +512,7 @@ namespace gsr {
|
||||
hide();
|
||||
|
||||
if(notification_process > 0) {
|
||||
kill(notification_process, SIGKILL);
|
||||
kill(notification_process, SIGINT);
|
||||
int status;
|
||||
if(waitpid(notification_process, &status, 0) == -1) {
|
||||
perror("waitpid failed");
|
||||
@@ -1700,7 +1700,7 @@ namespace gsr {
|
||||
notification_args[arg_index++] = nullptr;
|
||||
|
||||
if(notification_process > 0) {
|
||||
kill(notification_process, SIGKILL);
|
||||
kill(notification_process, SIGINT);
|
||||
int status = 0;
|
||||
waitpid(notification_process, &status, 0);
|
||||
}
|
||||
@@ -1828,8 +1828,6 @@ namespace gsr {
|
||||
result += std::to_string(seconds) + " second" + (seconds == 1 ? "" : "s");
|
||||
}
|
||||
|
||||
fprintf(stderr, "to duration string: %f, %d, %d, %d\n", duration_sec, seconds, minutes, hours);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user