Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

unix: report useful error if poll() in sendfile emulation fails #620

Closed
bnoordhuis opened this Issue · 0 comments

1 participant

@bnoordhuis

See here.

The sendfile emulation in src/unix/fs.c polls the file descriptor for write readiness. If POLLERR or POLLHUP is set, it bails out but doesn't set errno (hence it doesn't report a useful error code).

TBD: The error code to set. EPIPE, EIO, something else?

@bnoordhuis bnoordhuis was assigned
@bnoordhuis bnoordhuis closed this issue from a commit
@bnoordhuis bnoordhuis unix: set errno in sendfile emulation
The sendfile emulation in src/unix/fs.c polls the file descriptor for
write readiness. If POLLERR or POLLHUP is set, it bails out but doesn't
set errno (hence it doesn't report a useful error code). Rectify that.

Fixes #620.
39c8a90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.