So for now, I'd rather just leave them all alone. The test is now working correctly.
Thanks for the suggestion - definitely much better than "wait and hope" approach! :)
On Tue, 19 Feb 2013, Joerg Sonnenberger wrote:
On Mon, Feb 18, 2013 at 07:24:39PM -0800, Paul Goyette wrote:On Tue, 19 Feb 2013, Joerg Sonnenberger wrote:Wait a little bit after fork()ing the lockers to give them a chance to get started before trying to ptrace(ATTACH).What about using a pipe to make this an explicit barrier?You mean something like this? :)Almost. Don't use printf after fork(), otherwise fine. Joerg !DSPAM:5123d2da267581420614406!
------------------------------------------------------------------------- | Paul Goyette | PGP Key fingerprint: | E-mail addresses: | | Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com | | Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net | | Kernel Developer | | pgoyette at netbsd.org | -------------------------------------------------------------------------