From cdf223083fed0f35549071d141f6257c4a660ca2 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 11 Apr 2000 07:14:12 +0000 Subject: two minor bugfixes for SCO UnixWare. The first is to catch SIGPIPE so that putmsg() inside their send() doesn't kill swat and the scond is to open /dev/null to replace stdin after we close that (This used to be commit d35bbe56bc9e3e5896b2ebdf33ff6468a0432e1f) --- source3/web/cgi.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/web/cgi.c') 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,"&;")) { -- cgit