builtin/upload-archive.c: use error_errno()
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
23d05364fc
commit
17bef17ef8
@ -104,8 +104,7 @@ int cmd_upload_archive(int argc, const char **argv, const char *prefix)
|
||||
pfd[1].events = POLLIN;
|
||||
if (poll(pfd, 2, -1) < 0) {
|
||||
if (errno != EINTR) {
|
||||
error("poll failed resuming: %s",
|
||||
strerror(errno));
|
||||
error_errno("poll failed resuming");
|
||||
sleep(1);
|
||||
}
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user