summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRummskartoffel <Rummskartoffel@protonmail.com>2022-01-27 17:50:35 +0100
committerAndreas Kling <kling@serenityos.org>2022-01-29 11:22:43 +0100
commit273f15e8ea764e6fa2c2cf51a5917eff92db1e86 (patch)
tree0d12dfccf56a43f14f07a0c5ef9a6b6b7e73f101
parentef151afac87d4c3c22ac561bf8c66e8c0c070281 (diff)
downloadserenity-273f15e8ea764e6fa2c2cf51a5917eff92db1e86.zip
UserspaceEmulator: Implement ioctl TIOCGPGRP
-rw-r--r--Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp b/Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp
index eae8470506..51afba4d6c 100644
--- a/Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp
+++ b/Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp
@@ -1122,6 +1122,12 @@ int Emulator::virt$ioctl([[maybe_unused]] int fd, unsigned request, [[maybe_unus
mmu().copy_from_vm(&ws, arg, sizeof(winsize));
return syscall(SC_ioctl, fd, request, &ws);
}
+ case TIOCGPGRP: {
+ pid_t pgid;
+ auto rc = syscall(SC_ioctl, fd, request, &pgid);
+ mmu().copy_to_vm(arg, &pgid, sizeof(pgid));
+ return rc;
+ }
case TIOCSPGRP:
return syscall(SC_ioctl, fd, request, arg);
case TCGETS: {