mirror of
git://git.suckless.org/ubase
synced 2025-02-16 10:37:14 +00:00
dd: don't let failure to change pipe size affect exit code
This commit is contained in:
parent
c64b5b04c7
commit
e358d74a80
1
dd.c
1
dd.c
@ -152,6 +152,7 @@ copy_splice(struct dd_config *ddc)
|
|||||||
if (fcntl(p[0], F_SETPIPE_SZ, 1<<n) != -1)
|
if (fcntl(p[0], F_SETPIPE_SZ, 1<<n) != -1)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
errno = 0;
|
||||||
#endif
|
#endif
|
||||||
n = ddc->bs;
|
n = ddc->bs;
|
||||||
for (;ddc->b_out != ddc->count && !sigint;) {
|
for (;ddc->b_out != ddc->count && !sigint;) {
|
||||||
|
Loading…
Reference in New Issue
Block a user