complete documentation of stdin.* and stdout.*
[paraslash.git] / filter.c
index cfa2e94..608bb8b 100644 (file)
--- a/filter.c
+++ b/filter.c
@@ -30,8 +30,6 @@
 
 INIT_FILTER_ERRLISTS;
 
-#define INBUF_SIZE 32 * 1024
-
 static struct stdin_task stdin_task_struct;
 static struct stdin_task *sit = &stdin_task_struct;
 static struct filter_chain filter_chain_struct;
@@ -155,7 +153,6 @@ int main(int argc, char *argv[])
                goto out;
 
        stdout_set_defaults(sot);
-       PARA_EMERG_LOG("fc->output_eof: %d\n", *fc->output_eof);
        sot->buf = fc->outbuf;
        sot->loaded = fc->out_loaded;
        sot->input_eof = &fc->eof;
@@ -165,12 +162,11 @@ int main(int argc, char *argv[])
        register_task(&sit->task);
        s.default_timeout.tv_sec = 1;
        s.default_timeout.tv_usec = 0;
-       PARA_EMERG_LOG("fc->output_eof: %d\n", *fc->output_eof);
        ret = sched(&s);
 out:
        free(sit->buf);
+       close_filters(fc);
        if (ret < 0)
                PARA_EMERG_LOG("%s\n", PARA_STRERROR(-ret));
-       close_filters(fc);
        return ret < 0? EXIT_FAILURE : EXIT_SUCCESS;
 }