Closed nirs closed 10 years ago
Looks good. Just a quick question wrt inheriting the locals on reinstall, what if people put utilities (like a get_memory_stats
) in the locals? They would want those to be inherited.
Ok, looks like it is the user responsibility. If you are enable automatic installation in child process, you are responsible to use the locals correctly.
I'll post another version, this should make the code much simpler.
I posted a new version that support locals inheritance #18.
Typically, when you add a manhole to existing application, the application was not designed for this, so finding stuff from the manhole shell is hard or even impossible.
This patch adds a new locals optional argument, allowing a user to add application specific objects to manhole shell locals.
Example usage:
From the manhole shell, you can now use "server":
Installed locals are not inherited by child processes, since they may be invalid in the child process.
Issue: #16