8000 pwrite pread need check EINTR? · Issue #26 · twitter/fatcache · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Nov 2, 2021. It is now read-only.

pwrite pread need check EINTR? #26

Open
jazy333 opened this issue Dec 25, 2015 · 0 comments
Open

pwrite pread need check EINTR? #26

jazy333 opened this issue Dec 25, 2015 · 0 comments

Comments

@jazy333
Copy link
jazy333 commented Dec 25, 2015

like the following snippet:
n = pwrite(fd, slab, size, off);
if (n < size) {
log_error("pwrite fd %d %zu bytes at offset %"PRId64" failed: %s",
fd, size, off, strerror(errno));
return FC_ERROR;
}

when n<size ,pread or pwrite may interrupt by signal ,errno is equal to EINTR,
it should process on writing,not return an error?

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

No branches or pull requests

1 participant
0