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

[Fix Pattern] Check filedescriptor before closing #25

Open
hukoyu opened this issue Jul 31, 2020 · 0 comments
Open

[Fix Pattern] Check filedescriptor before closing #25

hukoyu opened this issue Jul 31, 2020 · 0 comments

Comments

@hukoyu
Copy link
Collaborator

hukoyu commented Jul 31, 2020

Some LTP tests were failing randomly when trying to close filedescriptor. This was happening especialy we used multithreaded approach instead of multiprocess mostly for networking related syscalls. In multithreaded workaround sometimes filedescriptors were not available when trying to close. So we are checking if filedescriptor is >= 0 before closing it.

LTP tests fixed with this pattern: (Count: 11)

epoll-ltp
getsockopt02
recvfrom01
recvmsg01
send01
sendfile02, sendfile05, sendfile06
sendmsg01
sendto01
setreuid07

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant