Commit 6727cacb authored by Niels Möller's avatar Niels Möller
Browse files

* src/server_session.c (do_eof): Use close_fd_nicely instead of

write_buffer_close.
* src/sexp_test.c (do_close): Likewise.

Rev: src/sexp_test.c:1.17
parent 9a285fbb
......@@ -81,7 +81,7 @@ do_close(struct lsh_callback *c)
{
CAST(input_closed, closure, c);
write_buffer_close(closure->output);
close_fd_nicely(closure->output);
}
#define BLOCK_SIZE 2000
......@@ -91,7 +91,7 @@ int main(int argc UNUSED, char **argv UNUSED)
NEW(io_backend, backend);
NEW(output_sexp, out);
NEW(input_closed, close);
struct write_buffer *write;
struct lsh_fd *write;
int status = 17;
......@@ -99,10 +99,10 @@ int main(int argc UNUSED, char **argv UNUSED)
write = io_write(make_lsh_fd(backend, STDOUT_FILENO, "stdout",
&handler),
BLOCK_SIZE, NULL)->write_buffer;
BLOCK_SIZE, NULL);
out->super.handler = do_output_sexp;
out->write = &write->super;
out->write = &write->write_buffer.super;
out->style = SEXP_ADVANCED;
close->super.f = do_close;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment