diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-04-11 07:14:12 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-04-11 07:14:12 +0000 |
commit | cdf223083fed0f35549071d141f6257c4a660ca2 (patch) | |
tree | 944304b2e2a03fb45bde5fd2572a73faceb13e70 /source3/web/swat.c | |
parent | 416fa5377bfca53f21b1fe9c1a71c7ca255abeb2 (diff) | |
download | samba-cdf223083fed0f35549071d141f6257c4a660ca2.tar.gz |
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)
Diffstat (limited to 'source3/web/swat.c')
-rw-r--r-- | source3/web/swat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/web/swat.c b/source3/web/swat.c index 3c9858a3d38..54192b70da6 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; |