Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patches: Delete patching of ioctl call in isatty #62

Closed

Conversation

mogasergiu
Copy link
Member

@mogasergiu mogasergiu commented Jul 13, 2023

Application such as python3 use isatty(), which does an ioctl() with TIOCGWINSZ as an argument for checking whether it should invoke the interactive interpretor or just start interpreting a given file.

Therefore, we may want to allow such function call to return an error if called upon a file from a non-pseudo filesystem such as ramfs or 9pfs.

Furthermore, since this patch is the middle one among the existing patches from an order standpoint, rename the starting index of the other patches to reflect the removal.

This PR depends on Unikraft Core Repository PR 981

Application such as `python3` use `isatty()`, which does an
`ioctl()` with `TIOCGWINSZ` as an argument for checking whether it
should invoke the interactive interpretor or just start interpreting
a given file.

Therefore, we may want to allow such function call to return an error
if called upon a file from a non-pseudo filesystem such as
`ramfs` or `9pfs`.

Furthermore, since this patch is the middle one among the existing
patches from an order standpoint, rename the starting index of the
other patches to reflect the removal.

Signed-off-by: Sergiu Moga <sergiu@unikraft.io>
@razvand razvand added the enhancement New feature or request label Jul 14, 2023
@razvand razvand added this to the v0.14.0 (Prometheus) milestone Jul 14, 2023
Copy link

@RaduNichita RaduNichita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested with app-python3 and it builds and runs on both x86_64 and aarch64

Reviewed-by: Radu Nichita radunichita99@gmail.com

Copy link
Member

@StefanJum StefanJum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Finally we can run a script using python3, thanks @mogasergiu 🚀 🚀
Reviewed-by: Stefan Jumarea stefanjumarea02@gmail.com

Copy link
Contributor

@razvanvirtan razvanvirtan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good, thanks @mogasergiu !
Reviewed-by: Razvan Virtan virtanrazvan@gmail.com

Copy link
Member

@skuenzer skuenzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved-by: Simon Kuenzer simon@unikraft.io

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/merged enhancement New feature or request
Projects
Status: Done!
Development

Successfully merging this pull request may close these issues.

None yet

7 participants