strace -f fix

Conrad Scott
Sat Jun 1 15:50:00 GMT 2002

"Christopher Faylor" <> wrote:
> On Sat, Jun 01, 2002 at 11:09:57PM +0100, Conrad Scott wrote:
> >I've been playing around with the strace program some more and noticed a
> >minor glitch: it's only meant to trace forked children if the -f flag is
> >given on the command line. Unfortunately it currently always traces
> >children, and the this flag has no effect.
> What are you trying to fix?  AFAICT, the -f option is working correctly.

Well, it doesn't work on my machine without the patch I sent in. That is,
strace *always* traces child processes for me regardless of the -f flag.
This is true of both the last release (1.3.10) and the current cvs source.
I've also got a test program that shows exactly the same behaviour unless
the CreateProcess() debug flags are used as per the patch I appended to the
last email message. And I've checked that that patch does change the
behaviour of strace with child processes (for me, on my machine, etc.).

If it's working for you, I'm not quite sure where that leaves us: I'm
running w2k (w/ latest service packs etc.), on a Pentium something-or-other
box, nothing too wacky.

Have you any idea? I'm befuddled now.

// Conrad

More information about the Cygwin-patches mailing list