]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - file_write.c
server: Use para_sigaction() to install the temporary SIGCHLD handler.
[paraslash.git] / file_write.c
index be1e7713c0d818498a1cb860351c56c285e8dfff..0950e303da07daab08429f425fe8a6548c70eb3f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2006-2008 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2006-2009 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
@@ -46,7 +46,7 @@ static int file_write_open(struct writer_node *wn)
        if (!conf->filename_given)
                free(filename);
        if (pfwd->fd >= 0)
-               return 8192;
+               return 1;
        free(pfwd);
        return -E_FW_OPEN;
 }
@@ -120,8 +120,6 @@ void file_write_init(struct writer *w)
        w->close = file_write_close;
        w->shutdown = NULL; /* nothing to do */
        w->help = (struct ggo_help) {
-               .purpose = file_write_args_info_purpose,
-               .usage = file_write_args_info_usage,
                .short_help = file_write_args_info_help,
                .detailed_help = file_write_args_info_detailed_help
        };