doc: Documented htpipe.
[ashd.git] / src / psendfile.c
index f5c7fdd..464440a 100644 (file)
@@ -25,6 +25,7 @@
 #include <sys/stat.h>
 #include <stdint.h>
 #include <time.h>
+#include <signal.h>
 #include <magic.h>
 #include <locale.h>
 #include <langinfo.h>
@@ -227,7 +228,7 @@ static void serve(struct muth *muth, va_list args)
     
     sfile = NULL;
     contype = NULL;
-    out = mtstdopen(fd, 1, 60, "r+");
+    out = mtstdopen(fd, 1, 60, "r+", NULL);
     
     if((file = getheader(req, "X-Ash-File")) == NULL) {
        flog(LOG_ERR, "psendfile: needs to be called with the X-Ash-File header");