[erlang-questions] : Kill a process tree

Vance Shipley vances@REDACTED
Wed Apr 25 04:12:57 CEST 2007


June Kim wrote:
}  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.

June,

I'm not sure what your design requirements are but if you just want to
safely run sequential tests in a clean environment each time you could
consider the pool application.

I first considered this approach after being disheartened by Joe's 
statement that due to the lack of atom garbage collecting a
"compile server" wouldn't be practical.  By spawning a new node for 
each run you get a clean environment and pool handles distributing the
runs over several servers.

	-Vance



More information about the erlang-questions mailing list