www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/01/03:38:35

Date: Thu, 1 Jul 1999 09:37:11 +0200 (MET DST)
From: Gisle Vanem <giva AT bryggen DOT bgnett DOT no>
To: djgpp AT delorie DOT com
Subject: Re: !(DJGPP && CGI && SAMBA)??
In-Reply-To: <LOBBKLEPLBKLOKFELHOIIEFECDAA.djgpp@niemeyer.net>
Message-ID: <Pine.UW2.3.95.990701093250.14397A-100000@bryggen.bgnett.no>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019