index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Laszlo Papp <djszapi2@gmail.com> | 2009-11-13 00:59:34 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2009-11-15 19:40:56 -0600 |
commit | be266b43647ef57632d7bcfd07a4441f737b5aed (patch) | |
tree | 43fea67e6a00849a6328cdffed0a4a7dc723fd28 /src | |
parent | 120cd312e49b9fbb844dd36c71fe1f2e2910b707 (diff) |
-rw-r--r-- | src/pacman/pacman.c | 4 |
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index f4f80449..574a4a8a 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -234,7 +234,9 @@ static void cleanup(int ret) { static ssize_t xwrite(int fd, const void *buf, size_t count) { ssize_t ret; - while((ret = write(fd, buf, count)) == -1 && errno == EINTR); + do { + ret = write(fd, buf, count); + } while(ret == -1 && errno == EINTR); return(ret); } |