delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/11/03/09:12:24

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.5 required=5.0 tests=AWL,BAYES_40,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE
X-Spam-Check-By: sourceware.org
Message-ID: <390187.48926.qm@web25507.mail.ukl.yahoo.com>
Date: Wed, 3 Nov 2010 13:12:06 +0000 (GMT)
From: Marco Atzeri <marco_atzeri AT yahoo DOT it>
Subject: Re: R: Why mc start without subshell by default?
To: cygwin AT cygwin DOT com, SZABO Gergely <gergely DOT szabo AT knorr-bremse DOT com>
In-Reply-To: <loom.20101103T133646-827@post.gmane.org>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

--- Mer 3/11/10, SZABO Gergely  ha scritto:

> Marco Atzeri <marco_atzeri
> <at> yahoo.it> writes:
>=20
> >=20
> > --- Mer 3/11/10, Oleksandr Gavenko=A0 ha scritto:
> >=20
> > > I can turn on subshell by:
> > >=20
> > > =A0 $ mc -U
> > >=20
> > > This is useful by default or I miss something?
> > >=20
> > >=20
> >=20
> > It is useful but there is one problem on cygwin.
> > When you close mc the subshell will not exit, so you
> will finish
> > with a "zombie" bash shell running.
> >=20
> > Marco
> >=20
> >=20
>=20
> I thought mc's lacking subshell support is a hard fact of
> life in Cygwin, until
> the -U option was pointed out here. It's a huge
> improvement.
>=20
> It's quite easy to kill the zombie subshells.
> Put a line into /etc/crontab (assuming you're running
> cron):
>=20
> */6 * * * * SYSTEM ps -a | sed -n 's/I=A0
> *\([0-9][0-9]*\)=A0 *1=A0 *..*bash$/\1/p' |
> xargs kill -KILL
>=20
> This will kill all bash processes every 6 minutes, who are
> waiting for input in
> the background (I) and whose parent process (PPID) is 1
> (not a terminal, not mc).
>=20
> Best regards
> Gergely
>=20

That is a workaround, it will be better if=20
Pavel release a mc cygwin package without
this problem...

mc-4.6.1 is 22 months old and eventually 4.7.0.x works
better.

Regards
Marco




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

- Raw text -


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