veyon/veyon-4.9.1-procps-ng-4.0.5.patch

47 lines
1.8 KiB
Diff

--- veyon-4.9.1/plugins/platform/linux/LinuxCoreFunctions.cpp.orig 2024-12-28 16:57:48.531677012 +0100
+++ veyon-4.9.1/plugins/platform/linux/LinuxCoreFunctions.cpp 2024-12-28 16:58:15.485765174 +0100
@@ -508,18 +508,18 @@
while ((stack = procps_pids_get(info, PIDS_FETCH_TASKS_ONLY)))
{
- const auto ppid = PIDS_VAL(PPidItemIndex, s_int, stack, info);
+ const auto ppid = PIDS_VAL(PPidItemIndex, s_int, stack);
if (ppid == parentPid)
{
if (visitParent == false || visitor(stack, info))
{
- ppids.append(PIDS_VAL(PidItemIndex, s_int, stack, info));
+ ppids.append(PIDS_VAL(PidItemIndex, s_int, stack));
}
}
else if (ppids.contains(ppid) && visitor(stack, info))
{
- ppids.append(PIDS_VAL(PidItemIndex, s_int, stack, info));
+ ppids.append(PIDS_VAL(PidItemIndex, s_int, stack));
}
}
--- veyon-4.9.1/plugins/platform/linux/LinuxServerProcess.cpp.orig 2024-12-28 16:54:37.040013169 +0100
+++ veyon-4.9.1/plugins/platform/linux/LinuxServerProcess.cpp 2024-12-28 16:54:55.967082118 +0100
@@ -102,7 +102,7 @@
LinuxCoreFunctions::forEachChildProcess([=](const pids_stack* stack, const pids_info* info)
{
Q_UNUSED(info)
- const pid_t tid = PIDS_VAL(0, s_int, stack, info);
+ const pid_t tid = PIDS_VAL(0, s_int, stack);
if (tid > 0 && ::kill(tid, sig) < 0 && errno != ESRCH)
{
vCritical() << "kill() failed with" << errno;
--- veyon-4.9.1/plugins/platform/linux/LinuxSessionFunctions.cpp.orig 2024-12-28 16:51:23.464253982 +0100
+++ veyon-4.9.1/plugins/platform/linux/LinuxSessionFunctions.cpp 2024-12-28 16:51:48.047356554 +0100
@@ -380,7 +380,7 @@
{
Q_UNUSED(info)
static constexpr auto EnvironItemIndex = 2;
- const auto environ = PIDS_VAL(EnvironItemIndex, strv, stack, info);
+ const auto environ = PIDS_VAL(EnvironItemIndex, strv, stack);
if (environ != nullptr)
{