server: split file descriptors in in/out fd's

pipes have different fd's for in/out. This makes the
code more orthogonal and prepares for adding pipes.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
This commit is contained in:
Øyvind Harboe
2010-09-27 08:26:31 +02:00
parent a60a57d8ed
commit 5a41435e45
5 changed files with 15 additions and 19 deletions

View File

@@ -58,6 +58,7 @@ int tcl_output(struct connection *connection, const void *data, ssize_t len)
return ERROR_SERVER_REMOTE_CLOSED;
wlen = write_socket(connection->fd, data, len);
if (wlen == len)
return ERROR_OK;