Mail Archives: djgpp/1999/07/01/03:38:35
On Thu, 1 Jul 1999, Gustavo Niemeyer wrote:
>
> I really can't understand what's happening here. Maybe someone else
> can.
>
> I'm using DJGPP to develop a CGI system that do some math calculations
> and should return some values. It isn't complicated at all and it's compiling
> and linking without any problems and also runs ok in command line. but when
> I try to run it as a CGI program Samba reports that there is no output from
> CGI. What surprise me after some tests is that there is really no output at
> all and it's exiting with errorcode 1. After that I used Cygwin to compile
> exactly the same code and it's working fine.
>
> Could it be a DPMI problem inside Win98???
>
> Could it be a DJGPP bug? Maybe a bug in my brain? :-)
>
It's because Windows console programs cannot duplicate the stdout/stderr
handles from a DOS-program (or from another virtual machine). Redirection
of stdin/stdout which CGI-programs depends on, can only happen between
processes on the same virtual machine.
Gisle V.
- Raw text -