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