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 Subject: Re: R: Why mc start without subshell by default? To: cygwin AT cygwin DOT com, SZABO Gergely In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable 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 --- Mer 3/11/10, SZABO Gergely ha scritto: > Marco Atzeri 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