Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: matthewm@sgate.com (Michael Matthews)
Subject: Re: CERN HTTPD Problem with OSF1 3.2
Date: 1995/04/04	[thread overview]
Message-ID: <3lrnrl$o3b@sgate.com> (raw)
In-Reply-To: 3lnmb3$5h5@styx.uwa.edu.au

In article <3lnmb3$5h5@styx.uwa.edu.au>,
Toivo Pedaste <toivo@ucs.uwa.edu.au> 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)



  reply	other threads:[~1995-04-04  4:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-03-29  1:47 CERN HTTPD Problem with OSF1 3.2 Tim McKee
1995-04-03  4:00 ` Toivo Pedaste
1995-04-04  4:00   ` Michael Matthews [this message]
1995-04-06  4:00   ` Giovanni Maruzzelli
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox