R: Why mc start without subshell by default?
Wed Nov 3 12:45:00 GMT 2010
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.
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).
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin