On Mon, Mar 02, 2009 at 07:31:54PM +0000, Andy Koppe wrote: >2009/3/2 Daniel S.: >>What setup is need to get ^Z to suspend the current process? >> >>The CygWin manual Environment Variables section at >>http://cygwin.com/cygwin-ug-net/setup-env.html says: >> >>?The CYGWIN variable is used ... [Y]ou can ... set it to tty (e.g. >>to support ?job control with ^Z etc...) using a syntax like this in the >>DOS shell, before ?launching bash. > >You have to make sure that the CYGWIN variable is set before any Cygwin >programs are run, because it is read when the Cygwin DLL is first >loaded. Exiting all Cygwin processes before invoking cygwin.bat again >should do the trick.
That shouldn't be necessary. The CYGWIN=tty is inherited by just one process. It isn't shared. >> for (( i = 1 ; i '<' 100000 ; i = i + 1 )) ; do : ; done Cygwin's CTRL-Z emulation isn't perfect. It may not work well in a scenario where you're in a tight loop in user space code which is what the above bash loop would be. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/