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 #1999: Clear errno before readdir in posixlib dirent.c #2000

Merged

Conversation

LeeTibbert
Copy link
Contributor

The Posix standard recommends setting errno before calling readdir.
This fix will help distinguish the current intermittent errors in
DirectoryStreamTest: are they stale errno or are they
describing a real condition?

This is a targeted surgical change. I will create an Issue for other issues
discovered whilst creating this PR.

The Posix standard recommends setting errno before calling readdir.
This fix will help distinguish the current intermittent errors in
DirectoryStreamTest: are they stale errno or are they
describing a real condition?

This is a surgical change. I will create an Issue for other issues
discovered whilst creating this PR.
@LeeTibbert
Copy link
Contributor Author

The build of this PR fails for reasons not directly related to the changes of this PR.
The failure is in ProcessTest.

A set of flaws in ProcessTest are fixed in pending PR #2003. That PR does not
build cleanly because it has failures in DirectoryStreamTest, the subject of this PR.

@sjrd sjrd merged commit 3c6907b into scala-native:master Nov 16, 2020
vicopem pushed a commit to vicopem/scala-native that referenced this pull request Nov 19, 2020
scala-native#2000)

The Posix standard recommends setting errno before calling readdir.
This fix will help distinguish the current intermittent errors in
DirectoryStreamTest: are they stale errno or are they
describing a real condition?
vicopem added a commit to vicopem/scala-native that referenced this pull request Nov 19, 2020
vicopem added a commit to vicopem/scala-native that referenced this pull request Nov 19, 2020
ekrich pushed a commit to ekrich/scala-native that referenced this pull request May 21, 2021
scala-native#2000)

The Posix standard recommends setting errno before calling readdir.
This fix will help distinguish the current intermittent errors in
DirectoryStreamTest: are they stale errno or are they
describing a real condition?
WojciechMazur pushed a commit to WojciechMazur/scala-native that referenced this pull request Aug 25, 2021
scala-native#2000)

The Posix standard recommends setting errno before calling readdir.
This fix will help distinguish the current intermittent errors in
DirectoryStreamTest: are they stale errno or are they
describing a real condition?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants