-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
preload: Only emulate ioctls on emulated devices
Don't invoke the remote ioctl handler for host devices. This fixes e.g. ioctls on /dev/tty or other standard devices which the tested program may want to do. This bug was hidden by the conditional check in t_usbfs_ioctl_static() which skipped the check if /dev/tty wasn't accessible -- which is the case in `meson test`. Move to a FIONREAD ioctl on /dev/stdout, which works on ttys and pipes, i.e. everywhere. Make that check unconditional.
- Loading branch information
1 parent
7870dab
commit fe0ec89
Showing
3 changed files
with
24 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters