Date: Thu, 1 Jul 1999 09:37:11 +0200 (MET DST) From: Gisle Vanem To: djgpp AT delorie DOT com Subject: Re: !(DJGPP && CGI && SAMBA)?? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.