mirror of
https://github.com/fluencelabs/redis
synced 2025-06-17 11:11:20 +00:00
Fix write() errno error
This commit is contained in:
@ -5575,7 +5575,7 @@ static void getRDB(void) {
|
||||
nwritten = write(fd, buf, nread);
|
||||
if (nwritten != nread) {
|
||||
fprintf(stderr,"Error writing data to file: %s\n",
|
||||
strerror(errno));
|
||||
(nwritten == -1) ? strerror(errno) : "short write");
|
||||
exit(1);
|
||||
}
|
||||
payload -= nread;
|
||||
|
Reference in New Issue
Block a user