X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.1 required=5.0 tests=AWL,BAYES_05,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <20101222185024.GA4970@jethro.local.lan> References: <20101222185024 DOT GA4970 AT jethro DOT local DOT lan> From: Vasya Pupkin Date: Wed, 22 Dec 2010 22:02:00 +0300 Message-ID: Subject: Re: problem with sshd To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Wed, Dec 22, 2010 at 9:50 PM, David Sastre wrote: >> >> I have a problem running cygwin sshd. I often end up with a lot of >> >> bash processes running and eating memory while there are no single >> >> active ssh session. It happens when either connection lost or user >> >> closes connection without logging out, sshd process dies but bash >> >> remains in memory forever. Is it possible to prevent this? In all real >> >> unix environments this never happen, bash always dies when parent sshd >> >> exits. > > You might want to enable TCPKeepAlive. It could, at a very least, > prevent disconnections without explicit user interaction. It's enabled. When sshd not receiving keepalives (network issue or user closed terminal), it dies (which is good) and leaves bash process running forever (which is not good). -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple