[erlang-questions] Kill a process tree
Mon Apr 23 00:07:22 CEST 2007
2007/4/22, June Kim <juneaftn@REDACTED>:
> 2007/4/22, June Kim <juneaftn@REDACTED>:
> > My original purpose of all this is, to make a test runner, which runs
> > a given function, which in turn might create a group of
> > processes(which may not be linked to each other) and then kill all of
> > them after a certain amount of time. The function under test could be
> > written without the specific consideration of being run with the test
> > runner.
Why not trace on process events?
You can get a trace message everytime the function spawns a process,
and you can have the trace flags apply to newly spawned processes
as well. See erl -man erlang, and look at the trace BIFs. The trace
flag that records spawns is called 'procs'.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions