Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/record_syscall.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1984,6 +1984,8 @@ static Switchable prepare_ioctl(RecordTask* t,
case IOCTL_MASK_SIZE(TUNSETVNETLE):
case IOCTL_MASK_SIZE(TUNSETVNETBE):
case IOCTL_MASK_SIZE(TCSETS2):
case IOCTL_MASK_SIZE(TCSETSW2):
case IOCTL_MASK_SIZE(TCSETSF2):
return PREVENT_SWITCH;
case IOCTL_MASK_SIZE(USBDEVFS_GETDRIVER):
// Reads and writes its parameter despite not having the _IOC_READ bit.
Expand Down
2 changes: 2 additions & 0 deletions src/test/ioctl_tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ int main(void) {
tc2->c_iflag, tc2->c_oflag, tc2->c_cflag, tc2->c_lflag,
tc2->c_ispeed, tc2->c_ospeed);
test_assert(0 == ioctl(fd, TCSETS2, tc2));
test_assert(0 == ioctl(fd, TCSETSW2, tc2));
test_assert(0 == ioctl(fd, TCSETSF2, tc2));

// NB: leaving the TCSETS2 as the last word seems to mess up the terminal,
// so fix it.
Expand Down