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.
On Sat, Nov 03, 2001 at 11:30:44PM +0300, egor duda wrote:
>Hi!
>
>Saturday, 03 November, 2001 Christopher Faylor cgf@redhat.com wrote:
>
>CF> On Fri, Nov 02, 2001 at 11:54:03PM +0300, egor duda wrote:
>>>
>>> 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.
>
>CF> I like the idea but how about making it more flexible?
>
>CF> Maybe we need a "flush every n seconds switch?" I'd like this to be
>CF> selectable because there are times that I don't want to see the output
>CF> until the program exits since I want to get the maximum throughput from
>CF> strace possible.
>
>CF> So, if you specify '-S60', then strace will flush every sixty seconds.
>CF> Otherwise it will behave as before.
>
>CF> Otherwise, the '-w' option is fine, if you want to check that part in.
>
>no probs. here's an updated patch.
Poifect. Please check it in.
Thanks for adding some very useful functinality to strace.
cgf