delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/06/06/03:37:51

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-Id: <95962389-2631-4B8B-A68F-6CB749146814@palare.demon.co.uk>
From: Tim Cook <tim AT palare DOT demon DOT co DOT uk>
To: cygwin AT cygwin DOT com
Mime-Version: 1.0 (Apple Message framework v919.2)
Subject: bash shells not terminating
Date: Fri, 6 Jun 2008 08:37:21 +0100
X-Mailer: Apple Mail (2.919.2)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

Most of our users login remotely to Cygwin and I've noticed that if  
they don't logout correctly (if their connection is terminated  
unexpectedly) then the bash shell process is still there. Over a  
period of time these processes build up. I've written a script to  
detect and kill them but I was wondering if there was a better way. I  
understand that bash background processes do not automatically  
terminate when you logout. I've tried to recreate the problem on  
Solaris but no matter what I do to kill the connection, my login shell  
always seems to get terminated. I

I've had a trawl through the archives and can't find any mention of  
this so maybe its not a problem for other users. Or is is at the  
discretion of a given o/s how to handle orphan processes? I could  
switch to using another login shell to avoid the problem but was  
wondering if this is a known problem and if there are any other  
workarounds for it?

Thanks.

Tim

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