mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-03-31 09:07:13 +09:00
Move dbus code to a separate process to allow gpu-screen-recorder to use cap_sys_nice for better recording performance on amd
This commit is contained in:
@@ -387,6 +387,7 @@ void cleanup_socket(gsr_kms_client *self, bool kill_server) {
|
||||
|
||||
if(kill_server && self->kms_server_pid > 0) {
|
||||
kill(self->kms_server_pid, SIGKILL);
|
||||
// TODO:
|
||||
//int status;
|
||||
//waitpid(self->kms_server_pid, &status, 0);
|
||||
self->kms_server_pid = -1;
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
#include <locale.h>
|
||||
|
||||
#include <unistd.h>
|
||||
#include <limits.h>
|
||||
@@ -434,6 +435,8 @@ static double clock_get_monotonic_seconds(void) {
|
||||
}
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
setlocale(LC_ALL, "C"); // Sigh... stupid C
|
||||
|
||||
int res = 0;
|
||||
int socket_fd = 0;
|
||||
gsr_drm drm;
|
||||
|
||||
Reference in New Issue
Block a user