summaryrefslogtreecommitdiff
path: root/DevTools
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-08-05 19:41:16 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-05 22:34:50 +0200
commit9d93e208ace5a7c8152bb5933b25330fba180230 (patch)
tree1907049548d7d05ce999508edf70bfa8586b3666 /DevTools
parent3717a0029026da39a9247fcb14538ae116f64b84 (diff)
downloadserenity-9d93e208ace5a7c8152bb5933b25330fba180230.zip
UserspaceEmulator: Support ioctl(TIOCSPGRP)
Diffstat (limited to 'DevTools')
-rw-r--r--DevTools/UserspaceEmulator/Emulator.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/DevTools/UserspaceEmulator/Emulator.cpp b/DevTools/UserspaceEmulator/Emulator.cpp
index 9b72aa5503..a8c36e516f 100644
--- a/DevTools/UserspaceEmulator/Emulator.cpp
+++ b/DevTools/UserspaceEmulator/Emulator.cpp
@@ -896,6 +896,9 @@ int Emulator::virt$ioctl(int fd, unsigned request, FlatPtr arg)
mmu().copy_to_vm(arg, &ws, sizeof(winsize));
return 0;
}
+ if (request == TIOCSPGRP) {
+ return syscall(SC_ioctl, fd, request, arg);
+ }
dbg() << "Unsupported ioctl: " << request;
dump_backtrace();
TODO();