-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Fix setting pipe used in PAL_ProbeMemory as nonblocking #61126
Conversation
Signed-off-by: Vikas Tikoo <vikasamar@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vtikoo have you hit any particular problem or just found a possible issue when analyzing the source code?
LGTM, thank you!
flags = fcntl(fds[0], F_GETFL, 0); | ||
fcntl(fds[0], F_SETFL, flags | O_NONBLOCK); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
an alternative would be using pipe2
but this would require an #ifdef
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do some targets not support pipe2
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pipe2
is Linux-specific and we support macOS and few other Unix-like OSese. The current solution is good, I am going to merge the PR.
Signed-off-by: Vikas Tikoo vikasamar@gmail.com