This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: strace patch for better handling of hung applications.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]