[hackers] [scc] [driver] clean in and out tool fds || Quentin Rameau

From: <git_AT_suckless.org>
Date: Wed, 15 Jun 2016 19:00:06 +0200 (CEST)

commit 4ab0abc2045290932735c9df5962bdaeae211981
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Fri Jun 10 10:50:07 2016 +0200
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Wed Jun 15 18:50:46 2016 +0200

    [driver] clean in and out tool fds
    
    This fixes using outdated fds when reusing on a later pass a tool which
    got its input from stdin, but would now read it from command line passed
    file.

diff --git a/driver/posix/scc.c b/driver/posix/scc.c
index bd5a61b..f23929b 100644
--- a/driver/posix/scc.c
+++ b/driver/posix/scc.c
_AT_@ -307,6 +307,8 @@ validatetools(void)
                         t->nargs = t->nparams;
                         t->pid = 0;
                         t->error = 0;
+ t->in = 0;
+ t->out = 0;
                 }
         }
 }
Received on Wed Jun 15 2016 - 19:00:06 CEST

This archive was generated by hypermail 2.3.0 : Wed Jun 15 2016 - 19:00:49 CEST