delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/13/10:18:54

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Tue, 13 Mar 2001 16:17:05 +0100
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin <cygwin AT cygwin DOT com>
Subject: Re: problem in telnet session
Message-ID: <20010313161705.E569@cygbert.vinschen.de>
Mail-Followup-To: cygwin <cygwin AT cygwin DOT com>
References: <20010313152417 DOT B569 AT cygbert DOT vinschen DOT de> <Pine DOT CYG DOT 4 DOT 31 DOT 0103131432530 DOT 196-100000 AT kampala DOT analog DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <Pine.CYG.4.31.0103131432530.196-100000@kampala.analog.com>; from keith_starsmeare@yahoo.co.uk on Tue, Mar 13, 2001 at 02:49:27PM +0000

On Tue, Mar 13, 2001 at 02:49:27PM +0000, Keith Starsmeare wrote:
> On Tue, 13 Mar 2001, Corinna Vinschen wrote:
> > ??? It did work when I've just tested it. Did you in fact recompile
> > inetutils?
> 
> It works for me too, but is there another solution? One problem is that
> I'm not sitting at the desktop. Another more serious problem is that
> programs which process the output stream don't work when run through the
> inetd.
> 
> E.g. The following code when compiled with gcc --mno-cygwin (or cl)
> doesn't have any output to process when run through the inetd:
> 
>   #include <stdio.h>
> 
>   int main()
>   {
>     char psBuffer[128];
>     FILE *output;
> 
>     if ((output = _popen("nm a.exe", "r")) == NULL ) exit(1);
>     while(!feof(output))
>       if(fgets(psBuffer, 128, output) != NULL) printf(psBuffer);
>     printf("\nProcess returned %d\n", _pclose(output));
>   }
> 
> This problem is affecting a non-cygwin program that we use, so we have
> to log on locally to use this program. :(

I'm somewhat surprised. I just checked your above program and
it worked fine over inetd/telnet with Egor's patch. I checked both,
with and without -mno-cygwin.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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