delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/09/08/17:03:50

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Mime-Version: 1.0
X-Sender: bentley AT mail DOT bl DOT com
Message-Id: <p06110404bf463973bbc6@[192.168.1.103]>
In-Reply-To: <20050908075435.GA5555@calimero.vinschen.de>
References: <p06110402bf458caf1166@[192.168.1.103]> <20050908075435 DOT GA5555 AT calimero DOT vinschen DOT de>
Date: Thu, 8 Sep 2005 14:03:32 -0700
To: cygwin AT cygwin DOT com
From: Michael Brian Bentley <bentley AT crenelle DOT com>
Subject: Re: Logout Terminal Services RDC ends ssh invoked by W2k3 service
X-IsSubscribed: yes

The developer who wrote the relevant code writes:

The terminal window that ssh is running inside of is not visible.
si.wShowWindow = SW_HIDE; is used to accomplish this in the
CreateProcess.

si.cb           = sizeof(STARTUPINFO);
si.dwFlags      = STARTF_USESTDHANDLES|STARTF_USESHOWWINDOW;
si.hStdOutput   = hChildStdOut;
si.hStdInput    = hChildStdIn;
si.hStdError    = hChildStdErr;

// Use this if you want to hide the child:

si.wShowWindow = SW_HIDE;

// Note that dwFlags must include STARTF_USESHOWWINDOW if you want to
// use the wShowWindow flags.

pData->env_block = process_env_block(pData, StringAt(pData, environment));

// Launch the process that you want to redirect (in this case,
// Child.exe). Make sure Child.exe is in the same directory as
// redirect.c launch redirect from a command line to prevent location
// confusion.

if 
(!CreateProcess(NULL,command,NULL,NULL,TRUE,CREATE_NEW_CONSOLE|HIGH_PRIORITY_CLASS,
                    pData->env_block,wkgdir,&si,&pi)){

----------------

We did do the test. The mileage varies depending on the program we 
run. The important one, ssh, appears to finish right away. Others 
appear to continue to operate, but running them via Terminal Services 
likely will end execution after logout.

The feeling we have now is to go to plan B and find an alternative 
solution until we can solve the problem. Thanks very much!


-Mike

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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