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

Closed
bnoordhuis opened this Issue Nov 12, 2012 · 0 comments

Comments

Projects
None yet
1 participant
Contributor

bnoordhuis commented Nov 12, 2012

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?

@ghost ghost assigned bnoordhuis Nov 12, 2012

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