summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6fe076b)
catches most sorts of io errors and ensures we report a error in our
exit status.
static int cleanup_fd1, cleanup_fd2;
static struct map_struct *cleanup_buf;
static int cleanup_pid = 0;
static int cleanup_fd1, cleanup_fd2;
static struct map_struct *cleanup_buf;
static int cleanup_pid = 0;
void _exit_cleanup(int code, const char *file, int line)
{
extern int keep_partial;
void _exit_cleanup(int code, const char *file, int line)
{
extern int keep_partial;
+ if (code == 0 && io_error) code = RERR_FILEIO;
+
signal(SIGUSR1, SIG_IGN);
if (cleanup_got_literal && cleanup_fname && keep_partial) {
signal(SIGUSR1, SIG_IGN);
if (cleanup_got_literal && cleanup_fname && keep_partial) {