<br><br><div><span class="gmail_quote">2007/4/22, June Kim <<a href="mailto:juneaftn@gmail.com">juneaftn@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2007/4/22, June Kim <<a href="mailto:juneaftn@gmail.com">juneaftn@gmail.com</a>>:<br>> My original purpose of all this is, to make a test runner, which runs<br>> a given function, which in turn might create a group of
<br>> processes(which may not be linked to each other) and then kill all of<br>> them after a certain amount of time. The function under test could be<br>> written without the specific consideration of being run with the test
<br>> runner.</blockquote><div><br> </div></div>Why not trace on process events?<br><br>You can get a trace message everytime the function spawns a process,<br>and you can have the trace flags apply to newly spawned processes
<br>as well. See erl -man erlang, and look at the trace BIFs. The trace<br>flag that records spawns is called 'procs'.<br><br>BR,<br>Ulf W<br>