From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,f4dc4a0d47814319 X-Google-Attributes: gidfee84,public From: matthewm@sgate.com (Michael Matthews) Subject: Re: CERN HTTPD Problem with OSF1 3.2 Date: 1995/04/04 Message-ID: <3lrnrl$o3b@sgate.com>#1/1 X-Deja-AN: 100804600 references: <3lae86$aef@ns.sunbelt.net> <3lnmb3$5h5@styx.uwa.edu.au> organization: Southgate Internet Host newsgroups: comp.unix.osf.osf1 In article <3lnmb3$5h5@styx.uwa.edu.au>, Toivo Pedaste wrote: >There is some sort of problem with closing pipes and terminating >processes. I assume its an OSF problem since it doesn't happen >on other systems. >My workaround is to put a >close(STDOUT) >sleep(1) >at the end of the CGI script. This works for me. My solution was a bit more drastic -- patch the HTScript.c source code to have it ignore the error. The function is HTLoadScriptResult. Line 208 is the one I commented out (the 'break' right after CTRACE(stderr,"HTLoad....")). I tried telling the software to ignore SIGPIPE but that did not seem to do anything. This solution is a tad bit dangerous because it now ignores _all_ errors, but at least the debugging output is still there so you can see what's going on if you look. > Toivo Pedaste Email: toivo@ucs.uwa.edu.au > University Computing Services, Phone: +61 9 380 2605 > University of Western Australia Fax: +61 9 380 1014 -- ------------------------------------------------------------------------------ Mike Matthews, Mike_Matthews@sgate.com (NeXTmail accepted)