mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
Vertically compact code in aofWrite().
This commit is contained in:
parent
2a99f199bc
commit
54c4e7f86c
@ -303,9 +303,7 @@ ssize_t aofWrite(int fd, const char *buf, size_t len) {
|
|||||||
nwritten = write(fd, buf, len);
|
nwritten = write(fd, buf, len);
|
||||||
|
|
||||||
if (nwritten < 0) {
|
if (nwritten < 0) {
|
||||||
if (errno == EINTR) {
|
if (errno == EINTR) continue;
|
||||||
continue;
|
|
||||||
}
|
|
||||||
return totwritten ? totwritten : -1;
|
return totwritten ? totwritten : -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user