summaryrefslogtreecommitdiff
path: root/source3/web
diff options
context:
space:
mode:
Diffstat (limited to 'source3/web')
-rw-r--r--source3/web/cgi.c1
-rw-r--r--source3/web/swat.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/source3/web/cgi.c b/source3/web/cgi.c
index 62a5e71e05..b33feb30c2 100644
--- a/source3/web/cgi.c
+++ b/source3/web/cgi.c
@@ -198,6 +198,7 @@ void cgi_load_variables(FILE *f1)
}
fclose(stdin);
+ open("/dev/null", O_RDWR);
if ((s=query_string) || (s=getenv("QUERY_STRING"))) {
for (tok=strtok(s,"&;");tok;tok=strtok(NULL,"&;")) {
diff --git a/source3/web/swat.c b/source3/web/swat.c
index 3c9858a3d3..54192b70da 100644
--- a/source3/web/swat.c
+++ b/source3/web/swat.c
@@ -973,6 +973,9 @@ static void printers_page(void)
/* just in case it goes wild ... */
alarm(300);
+ /* we don't want any SIGPIPE messages */
+ BlockSignals(True,SIGPIPE);
+
dbf = sys_fopen("/dev/null", "w");
if (!dbf) dbf = stderr;