diff options
author | Rummskartoffel <Rummskartoffel@protonmail.com> | 2022-01-27 17:50:35 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-01-29 11:22:43 +0100 |
commit | 273f15e8ea764e6fa2c2cf51a5917eff92db1e86 (patch) | |
tree | 0d12dfccf56a43f14f07a0c5ef9a6b6b7e73f101 | |
parent | ef151afac87d4c3c22ac561bf8c66e8c0c070281 (diff) | |
download | serenity-273f15e8ea764e6fa2c2cf51a5917eff92db1e86.zip |
UserspaceEmulator: Implement ioctl TIOCGPGRP
-rw-r--r-- | Userland/DevTools/UserspaceEmulator/Emulator_syscalls.cpp | 6 |
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: { |