summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ripple/minitrace/src/main.rs15
1 files changed, 10 insertions, 5 deletions
diff --git a/ripple/minitrace/src/main.rs b/ripple/minitrace/src/main.rs
index be8ba6a..7f50f27 100644
--- a/ripple/minitrace/src/main.rs
+++ b/ripple/minitrace/src/main.rs
@@ -229,11 +229,16 @@ fn check_syscall(process: &Process, entry: SyscallEntry) -> bool {
 		13 => {}
 
 		// ioctl
-		16 => match entry.args[1] {
-			// TCGETS
-			0x5401 | 0x5413 => {}
-			_ => return false,
-		},
+		16 => {
+			let [_fd, command, ..] = entry.args;
+			match command {
+				// TCGETS
+				0x5401 => {}
+				// TIOCGWINSZ
+				0x5413 => {}
+				_ => return false,
+			}
+		}
 
 		// pread64
 		17 => {}