More file scaffolding.

This commit is contained in:
Ian Gulliver
2016-03-02 14:23:58 -08:00
parent 3e5ca27fdf
commit 58177c93a6
2 changed files with 92 additions and 9 deletions

View File

@@ -123,9 +123,11 @@ void exec_new(char *command, struct flow *flow, void *passthrough) {
(*flow->ref_count)++;
struct exec *exec = malloc(sizeof(*exec));
assert(exec);
exec->peer.fd = -1;
uuid_gen(exec->id);
exec->command = strdup(command);
assert(exec->command);
exec->flow = flow;
exec->passthrough = passthrough;