delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/13/08:20: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:16:34 +0300
From: Egor Duda <deo AT logos-m DOT ru>
X-Mailer: The Bat! (v1.45) Personal
Reply-To: Egor Duda <cygwin AT cygwin DOT com>
Organization: DEO
X-Priority: 3 (Normal)
Message-ID: <1424504517.20010313161634@logos-m.ru>
To: Kalkoul Morad <M-Kalkoul AT arte-tv DOT com>
CC: cygwin AT cygwin DOT com
Subject: Re: problem in telnet session
In-reply-To: <C57135C37E89D411836D0001FA32E63B72E455@ccentexchange.strg.arte>
References: <C57135C37E89D411836D0001FA32E63B72E455 AT ccentexchange DOT strg DOT arte>
Mime-Version: 1.0

Hi!

Tuesday, 13 March, 2001 Kalkoul Morad M-Kalkoul AT arte-tv DOT com wrote:

KM> Why when I'm in telnet session command like ipconfig displays a result, and
KM> the command like net start displays nothing only the next prompt.

i  believe  this is due to some net.exe "feature". it seems that if it
runs  out  of  console  window, it creates new console and outputs 
everything  there.  it's  can easily seen by setting "Allow Service to
interact   with   desktop"   for  inetd  service. when you run in your
telnet  or ssh session 'net start some_big_service' you'll see console
window with net.exe output popping up on your desktop.

the  following simple patch to inetd solved this problem for me. Corinna,
can you please consider it?

--- inetd.c.orig        Tue Mar 13 16:13:31 2001
+++ inetd.c     Tue Mar 13 16:10:44 2001
@@ -612,8 +612,11 @@ service_main(argc, argv)
        pid_t pid;
        char buf[50];
+
+#ifdef __CYGWIN__
         exception_list except_list;
         cygwin_internal (CW_INIT_EXCEPTIONS, &except_list);
 
-#ifdef __CYGWIN__
+        AllocConsole ();
+
         if (is_winnt && !debug) {
             openlog("inetd", LOG_PID | LOG_NOWAIT, LOG_DAEMON);

Egor.            mailto:deo AT logos-m DOT ru ICQ 5165414 FidoNet 2:5020/496.19



--
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