[erlang-questions] Kill a process tree
Mon Apr 23 14:42:02 CEST 2007
I just want to mention that the use of trace functions in the
implementation of application code is definately not recommended since
it will interfere with
the possibilities to do tracing on that application or the system
which the application is part of.
Regards Kenneth Lundin (Responsible for Erlang/OTP within Ericsson)
On 4/23/07, Ulf Wiger <> wrote:
> 2007/4/22, June Kim <>:
> > 2007/4/22, June Kim <>:
> > > 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'.
> Ulf W
> erlang-questions mailing list
More information about the erlang-questions