Introduction
Introduction Statistics Contact Development Disclaimer Help
dd: don't let failure to change pipe size affect exit code - ubase - suckless l…
git clone git://git.suckless.org/ubase
Log
Files
Refs
README
LICENSE
---
commit e358d74a805829dddf987ff62f42c7631df48e88
parent c64b5b04c7993765ab67207e86db92a48d7087f4
Author: Eivind Uggedal <[email protected]>
Date: Tue, 15 Mar 2016 20:27:49 +0000
dd: don't let failure to change pipe size affect exit code
Diffstat:
M dd.c | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
diff --git a/dd.c b/dd.c
@@ -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;) {
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.