[hackers] [ubase] dd: don't let failure to change pipe size affect exit code || Eivind Uggedal

From: <git_AT_suckless.org>
Date: Wed, 16 Mar 2016 11:18:16 +0100 (CET)

commit e358d74a805829dddf987ff62f42c7631df48e88
Author: Eivind Uggedal <eivind_AT_uggedal.com>
AuthorDate: Tue Mar 15 20:27:49 2016 +0000
Commit: sin <sin_AT_2f30.org>
CommitDate: Wed Mar 16 10:17:51 2016 +0000

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

diff --git a/dd.c b/dd.c
index 1e1fda1..daa75fd 100644
--- a/dd.c
+++ b/dd.c
_AT_@ -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;) {
Received on Wed Mar 16 2016 - 11:18:16 CET

This archive was generated by hypermail 2.3.0 : Wed Mar 16 2016 - 11:24:24 CET