Get everyone out of flow's business.

This commit is contained in:
Ian Gulliver
2016-03-02 22:25:56 -08:00
parent e62b84e4e8
commit 2f6db632b2
7 changed files with 35 additions and 33 deletions

View File

@@ -136,7 +136,7 @@ bool opts_add_exec_send(char *arg) {
bool opts_add_stdin(char __attribute__((unused)) *arg) {
int fd = fcntl(0, F_DUPFD_CLOEXEC, 0);
assert(fd >= 0);
return flow_new(fd, receive_flow, NULL);
return flow_new_send_hello(fd, receive_flow, NULL, NULL);
}
bool opts_add_stdout(char *arg) {
@@ -146,5 +146,5 @@ bool opts_add_stdout(char *arg) {
}
int fd = fcntl(1, F_DUPFD_CLOEXEC, 0);
assert(fd >= 0);
return flow_new(fd, send_flow, serializer);
return flow_new_send_hello(fd, send_flow, serializer, NULL);
}