delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/12/05/17:05:53

X-Spam-Check-By: sourceware.org
Message-ID: <004c01c5f9e8$080bb100$810aa8c0@adexainc.com>
From: "Rob Siklos" <rob2 AT siklos DOT ca>
To: <cygwin AT cygwin DOT com>
Subject: when using run.exe, ssh zombie process running after command has finished
Date: Mon, 5 Dec 2005 17:05:40 -0500
MIME-Version: 1.0
X-IsSubscribed: yes
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

Hi All,

(using the latest Cygwin as of today)

I use the following command line (via a shortcut on my desktop) to open a 
window to my linux box:

    run.exe ssh snoopy "export DISPLAY=%COMPUTERNAME%:0.0; xterm"

It works great.

However, I just noticed that when I exit the xterm (with CTRL-D, or by 
typing "exit"), the ssh process is still running in the background.

Notes:

1) This problem only happens when running from a Windows shortcut or in 
cmd.exe.  Running the above command in a cygwin bash shell doesn't cause any 
problems

2) This problem only happens when running inside the run.exe container. 
Calling ssh directly doesn't leave the zombie processes


As a workaround, I can use:

    bash -c "run.exe ssh snoopy 'export DISPLAY=%COMPUTERNAME%:0.0; xterm'"

but then I get a black window pop up (just for a second).


Although a workaround exists, this still looks like a bug.  I don't know 
enough to fix something like this, but if anyone wants more information, I'd 
be glad to provide it.

Rob. 


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