This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: R: Why mc start without subshell by default?


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

> Marco Atzeri <marco_atzeri
> <at> yahoo.it> writes:
> 
> > 
> > --- Mer 3/11/10, Oleksandr Gavenko? ha scritto:
> > 
> > > I can turn on subshell by:
> > > 
> > > ? $ mc -U
> > > 
> > > This is useful by default or I miss something?
> > > 
> > > 
> > 
> > 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.
> > 
> > Marco
> > 
> > 
> 
> 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.
> 
> It's quite easy to kill the zombie subshells.
> Put a line into /etc/crontab (assuming you're running
> cron):
> 
> */6 * * * * SYSTEM ps -a | sed -n 's/I?
> *\([0-9][0-9]*\)? *1? *..*bash$/\1/p' |
> xargs kill -KILL
> 
> 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).
> 
> Best regards
> Gergely
> 

That is a workaround, it will be better if 
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]