Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Edgar Merl found that a hello-world CGI program ran fine from a browser when built with a C compiler but failed when built with the Informix esqlc compiler, with the web server log showing SIGPIPE. Jonathan Leffler said such problems are usually environment: the web server must supply INFORMIXSERVER, usually INFORMIXDIR and LD_LIBRARY_PATH. Martin Both suggested ignoring SIGPIPE. Edgar confirmed the environment was the cause. Solved.
Auto-generated by Claude from the posts below — may be imperfect; read the full thread.
Edgar Merl — — source: Informix-list mailing list archive (1991-1998)
Hi!
If i compile a "hello world"-cgi-program with a c-compiler, i have no
problems running the program from a browser, but compiling the same
code with the esqlc-Compiler of Informix causes an runtime-error (the
www-server-logfile always says "connection interrupted [SIGPIPE]").
Has anyone of you heard of this problem in your domain?
Thanks for all answers.
ciao edgar
↪ replying to Edgar Merl
Jonathan Leffler — — source: Informix-list mailing list archive (1991-1998)
Edgar Merl wrote:
> If i compile a "hello world"-cgi-program with a c-compiler, i have no
> problems running the program from a browser, but compiling the same
> code with the esqlc-Compiler of Informix causes an runtime-error (the
> www-server-logfile always says "connection interrupted [SIGPIPE]").
> Has anyone of you heard of this problem in your domain?
Just about any time anybody mentions web server and ESQL/C
program and problem in the same sentence, the answer is 'environment'.
Specifically, unless you've taken steps to ensure that the web server
is giving your ESQL/C application an Informix-aware environment (eg
INFORMIXSERVER at minimum, usually INFORMIXDIR too, and usually
LD_LIBRARY_PATH) then the ESQL/C program will fail to locate the
Informix material it needs to run.
--
Jonathan Leffler (jleffler@informix.com, jleffler@earthlink.net)
Guardian of DBD::Informix v0.60 -- see http://www.perl.com/CPAN
#include <disclaimer.h>
↪ replying to Edgar Merl
Martin Both — — source: Informix-list mailing list archive (1991-1998)
Edgar Merl wrote:
> code with the esqlc-Compiler of Informix causes an runtime-error (the
> www-server-logfile always says "connection interrupted [SIGPIPE]").
> Has anyone of you heard of this problem in your domain?
>
Hello Edgar,
i know this message, if i for example try to read from a socket
connection while the sender is terminating the connection. I don´t see
esql in these context.
To avoid this message i use:
signal(SIGPIPE, SIG_IGN);
Or see the man-pages from sigaction( sa_flags = SA_RESTART ...)
I hope this helps.
Martin
↪ replying to Jonathan Leffler
Edgar Merl — — source: Informix-list mailing list archive (1991-1998)
On Sat, 29 May 1999 14:18:43 -0700, Jonathan Leffler
<jleffler@earthlink.net> wrote:
>Edgar Merl wrote:
>> If i compile a "hello world"-cgi-program with a c-compiler, i have no
>> problems running the program from a browser, but compiling the same
>> code with the esqlc-Compiler of Informix causes an runtime-error (the
>> www-server-logfile always says "connection interrupted [SIGPIPE]").
>> Has anyone of you heard of this problem in your domain?
>
>Just about any time anybody mentions web server and ESQL/C
>program and problem in the same sentence, the answer is 'environment'.
>
>Specifically, unless you've taken steps to ensure that the web server
>is giving your ESQL/C application an Informix-aware environment (eg
>INFORMIXSERVER at minimum, usually INFORMIXDIR too, and usually
>LD_LIBRARY_PATH) then the ESQL/C program will fail to locate the
>Informix material it needs to run.
>
>--
>Jonathan Leffler (jleffler@informix.com, jleffler@earthlink.net)
>Guardian of DBD::Informix v0.60 -- see http://www.perl.com/CPAN
>#include <disclaimer.h>
>
You were absolutely right, this was in fact the problem.
Many thanks
ciao Edgar
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.