dd: don't let failure to change pipe size affect exit code

This commit is contained in:
Eivind Uggedal 2016-03-15 20:27:49 +00:00 committed by sin
parent c64b5b04c7
commit e358d74a80
1 changed files with 1 additions and 0 deletions

1
dd.c
View File

@ -152,6 +152,7 @@ copy_splice(struct dd_config *ddc)
if (fcntl(p[0], F_SETPIPE_SZ, 1<<n) != -1)
break;
}
errno = 0;
#endif
n = ddc->bs;
for (;ddc->b_out != ddc->count && !sigint;) {