Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/tests/kernel

Most of the printf's were already there before this round of updates, and there's enough differentiation in them to figure out which process is responsible. In any case, the printf's aren't critical to the test (until you need to debug it!).

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.



| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:       |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at    |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at |
| Kernel Developer |                          | pgoyette at  |

Home | Main Index | Thread Index | Old Index