Skip to content

Adding proper fsync errors signaling for pipes. - #8631

Merged
sbc100 merged 2 commits into
emscripten-core:incomingfrom
abujalski:samsung_fsync_errors_reporting
May 17, 2019
Merged

sbc100 merged 2 commits into
emscripten-core:incomingfrom
abujalski:samsung_fsync_errors_reporting

Conversation

@abujalski

Copy link
Copy Markdown
Contributor

This change sets properly errno flag for fsync function called on fd representing pipe.

This change fixes http://posixtest.sourceforge.net/ fsync/7-1 test.

@sbc100
sbc100 merged commit 07116f8 into emscripten-core:incoming May 17, 2019
@kripken

kripken commented May 17, 2019

Copy link
Copy Markdown
Member

This seems to have broken CI. Oddly no tests were run on it here, I'm not sure why? (I don't see [ci skip] or anything.)

After it landed on incoming, tests broke there, and the error message mentions fsync.

If we can't fix this quickly, we can revert it.

Comment thread src/library_syscall.js
});
#else
if (stream.stream_ops.fsync) {
return -stream.stream_ops.fsync(stream);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

indentation looks wrong here - should be 2 spaces, not 4.

We need to fix CI for this PR anyhow, can fix the indentation

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Very strange. I'll guess I'll revert. @abujalski can you re-upload a new PR?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reverted in 771fd6b

sbc100 added a commit that referenced this pull request May 17, 2019
VirtualTim pushed a commit to VirtualTim/emscripten that referenced this pull request May 21, 2019
VirtualTim pushed a commit to VirtualTim/emscripten that referenced this pull request May 21, 2019
VirtualTim added a commit to VirtualTim/emscripten that referenced this pull request May 23, 2019
VirtualTim added a commit to VirtualTim/emscripten that referenced this pull request May 23, 2019
VirtualTim added a commit to VirtualTim/emscripten that referenced this pull request May 23, 2019
VirtualTim added a commit to VirtualTim/emscripten that referenced this pull request May 23, 2019
belraquib pushed a commit to belraquib/emscripten that referenced this pull request Dec 23, 2020
belraquib pushed a commit to belraquib/emscripten that referenced this pull request Dec 23, 2020
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.

3 participants