Re: R: Why mc start without subshell by default?
On 03.11.2010 11:14, Marco Atzeri wrote: --- 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. Oh! I recall that I already wrote about this: C-o in GNU MC and mintty/rxvt issue? http://thread.gmane.org/gmane.os.cygwin/118690/focus=118693 mc --subshell after exit forget kill bash. http://thread.gmane.org/gmane.os.cygwin/118702 -- 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
Re: R: Why mc start without subshell by default?
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 -- 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
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
Re: R: Why mc start without subshell by default?
Marco Atzeri marco_atzeri at yahoo.it writes: 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 You might be interested, mc 4.7.5 is coming out within a few days. It will be the basis of a new stable branch. I would not bother porting 4.7.0 to Cygwin. Best regards Gergely -- 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
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: 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 You might be interested, mc 4.7.5 is coming out within a few days. It will be the basis of a new stable branch. I would not bother porting 4.7.0 to Cygwin. Best regards Gergely following mc websites Latest released version: 4.7.4; what's new. Latest released stable version: 4.7.0.9; what's new in the stable release. and also: http://www.midnight-commander.org/wiki/ReleaseWorkflow But as Pavel is not releasing new package for long time, this is more or less an academic discussion. 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
Re: R: Why mc start without subshell by default?
Marco Atzeri marco_atzeri at yahoo.it writes: following mc websites Latest released version: 4.7.4; what's new. Latest released stable version: 4.7.0.9; what's new in the stable release. and also: http://www.midnight-commander.org/wiki/ReleaseWorkflow But as Pavel is not releasing new package for long time, this is more or less an academic discussion. Marco From the mc mailing list: http://mail.gnome.org/archives/mc-devel/2010-November/msg0.html So sorry, stable mc 4.7.5 is due in a few weeks, not a few days. Best regards Gergely -- 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
Re: R: Why mc start without subshell by default?
On 3 November 2010 09:52, Oleksandr Gavenko wrote: On 03.11.2010 11:14, Marco Atzeri wrote: --- 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. Oh! I recall that I already wrote about this: C-o in GNU MC and mintty/rxvt issue? http://thread.gmane.org/gmane.os.cygwin/118690/focus=118693 mc --subshell after exit forget kill bash. http://thread.gmane.org/gmane.os.cygwin/118702 A related issue is that when you close any of the pty-based terminals with mc started from bash running in it, the mc process doesn't get killed. Bash does of course forward the SIGHUP it gets from the terminal to its child processes, and manually sending SIGHUP to the orphaned mc does get rid of it. A similar issue was previously reported against the joe and mined editors at http://cygwin.com/ml/cygwin/2010-04/msg01013.html. This still needs a simple test case though. Andy -- 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