~ubuntu-branches/ubuntu/intrepid/git-core/intrepid-updates

« back to all changes in this revision

Viewing changes to builtin-upload-archive.c

  • Committer: Package Import Robot
  • Author(s): Gerrit Pape
  • Date: 2007-04-22 13:31:05 UTC
  • mfrom: (1.1.14)
  • Revision ID: package-import@ubuntu.com-20070422133105-tkmhz328g2p0epz1
Tags: 1:1.5.1.2-1
* new upstream point release.
* debian/changelog.upstream: upstream changes taken from mailing list
  announcement.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * Copyright (c) 2006 Franck Bui-Huu
3
3
 */
4
 
#include <time.h>
5
 
#include <sys/wait.h>
6
 
#include <sys/poll.h>
7
4
#include "cache.h"
8
5
#include "builtin.h"
9
6
#include "archive.h"
94
91
        char buf[16384];
95
92
        ssize_t sz = read(child_fd, buf, sizeof(buf));
96
93
        if (sz < 0) {
97
 
                if (errno != EINTR)
 
94
                if (errno != EAGAIN && errno != EINTR)
98
95
                        error_clnt("read error: %s\n", strerror(errno));
99
96
                return;
100
97
        }