This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: strace patch for better handling of hung applications.
- To: cygwin-patches at cygwin dot com
- Subject: Re: strace patch for better handling of hung applications.
- From: Christopher Faylor <cgf at redhat dot com>
- Date: Fri, 2 Nov 2001 16:55:15 -0500
- References: <9944738310.20011102235403@logos-m.ru>
- Reply-To: cygwin-patches at cygwin dot com
On Fri, Nov 02, 2001 at 11:54:03PM +0300, egor duda wrote:
>Hi!
>
> i occasionally have a problem with strace when i need to turn
>buffering on because without it application starts to work properly.
>but with buffering, application may just freeze and i can only close a
>window it's running in. in this case buffered info (frequently it's
>the most interesting info) is lost. attached patch adds -w option
>similar to gdb's 'set new-console' and periodically flushes buffered
>info.
I like the idea but how about making it more flexible?
Maybe we need a "flush every n seconds switch?" I'd like this to be
selectable because there are times that I don't want to see the output
until the program exits since I want to get the maximum throughput from
strace possible.
So, if you specify '-S60', then strace will flush every sixty seconds.
Otherwise it will behave as before.
Otherwise, the '-w' option is fine, if you want to check that part in.
Thanks.
cgf