Hi Alex,
Unfortunately I can't help you with your PQExec call, but maybe I can
offer you a suggestion. Instead of causing the cgi program to 'crash'
with exit(), why not print an error message or the return code out in
HTML and then end the html in the usual way (ie </BODY></HTML>) before
calling exit? That way Apache will be able to display something and you
might be able to debug more easily as well.
Matthew
Alex wrote:
> All the stuff that could go wrong would have output nicely as html before
> this statement. For this purpose, I have debugging printf() and exit()
> statements before this, so I can gradually remove exit() statements until
> the problem occurs. That is how I pinpointed it to the PQExec function.
> In case someone is wondering, the exit()'s are needed because Apache buffers
> all output, and writes it once the cgi is done. If it crashes before it's
> done, you just get an error with hardly an indication of what's wrong.
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text