Re: 1.5.24-2: Applications automatically restart on crash
Christopher Faylor wrote: set CYGWIN=proc_retry:1 is a much less intrusive way of dealing with this. cgf The proc_retry:1 worked great! Although, at first I didn't think it was working, because I was trying to set the CYGWIN environment variable from within the shell. For anybody else who does this (at least with rxvt), this seems to only work if you set it in the cygwin.bat file that launches the terminal. I presume the CYGWIN variable is only read once when launching the the cygwin DLL? Thanks Chris and Dave. Best Regards, Chris -- 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/
RE: 1.5.24-2: Applications automatically restart on crash
Christopher Morlier wrote on 25 March 2008 20:08: Hi Everyone, For a couple of years I have noticed that when I run programs from within Cygwin (currently 1.5.24-2), if the program crashes (ie segfault) then the program gets automatically restarted. This is primarily a problem when compiling/testing a windows program I am developing (compiled with MSVC), as I have to wait for the program to restart so I can shut it down. It seems like this hasn't always been the behavior, although it has been for several years (in the past, it just didn't effect me as much). Yep. Because it's a non-cygwin child process, cygwin doesn't realise it's started and crashed, it thinks the process creation suffered a temporary failure and has up to 5 retries. I was wondering, is this a bug or a feature? Feature. And if it is a feature is there a way to prevent it from happening? Recompile the dll, with attention to sigproc.cc: int child_info::retry_count = 10; and the way that child_info::proc_retry decrements the 'retry' counter which is initialised to that value. See also the thread at http://cygwin.com/ml/cygwin-patches/2008-q1/msg00063.html and particularly http://cygwin.com/ml/cygwin-patches/2008-q1/msg00066.html cheers, DaveK -- Can't think of a witty .sigline today -- 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/
Re: 1.5.24-2: Applications automatically restart on crash
On Wed, Mar 26, 2008 at 02:13:50PM -, Dave Korn wrote: Christopher Morlier wrote on 25 March 2008 20:08: Hi Everyone, For a couple of years I have noticed that when I run programs from within Cygwin (currently 1.5.24-2), if the program crashes (ie segfault) then the program gets automatically restarted. This is primarily a problem when compiling/testing a windows program I am developing (compiled with MSVC), as I have to wait for the program to restart so I can shut it down. It seems like this hasn't always been the behavior, although it has been for several years (in the past, it just didn't effect me as much). Yep. Because it's a non-cygwin child process, cygwin doesn't realise it's started and crashed, it thinks the process creation suffered a temporary failure and has up to 5 retries. I was wondering, is this a bug or a feature? Feature. And if it is a feature is there a way to prevent it from happening? Recompile the dll, with attention to sigproc.cc: int child_info::retry_count = 10; and the way that child_info::proc_retry decrements the 'retry' counter which is initialised to that value. set CYGWIN=proc_retry:1 is a much less intrusive way of dealing with this. 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/
RE: 1.5.24-2: Applications automatically restart on crash
cgf wrote on 26 March 2008 15:49: set CYGWIN=proc_retry:1 is a much less intrusive way of dealing with this. So it is! That's handy. cheers, DaveK -- Can't think of a witty .sigline today -- 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/
1.5.24-2: Applications automatically restart on crash
Hi Everyone, For a couple of years I have noticed that when I run programs from within Cygwin (currently 1.5.24-2), if the program crashes (ie segfault) then the program gets automatically restarted. This is primarily a problem when compiling/testing a windows program I am developing (compiled with MSVC), as I have to wait for the program to restart so I can shut it down. It seems like this hasn't always been the behavior, although it has been for several years (in the past, it just didn't effect me as much). I was wondering, is this a bug or a feature? And if it is a feature is there a way to prevent it from happening? Thanks, Chris -- 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/