Any chance of adding a function to get the exit code from a ChildProcess?
[I spent a chunk of yesterday reworking my old code for managing child processes, and it wasn't until I'd got it all working nicely that I discovered you'd already added a class with the same name and damn-near the same interface! :D the only thing it's missing is the exit code].
Bit busy, but if you could give me a quick diff for getting the return code, would be happy to add it ;)
FYI, I'm working on some new classes that'll combine the ChildProcess and InterprocessConnection into some higher-level objects so that it'll be really easy to create and spin-off a slave process and talk to it with two-way message passing. My initial use-case for this is to improve plugin scanning, but it'll be a really handy class for lots of other stuff too.
cool :) I have to carry on with my version for now, since I need to be able to read stdout and stderr independently - its not really all that different - the only problem it creates is breaking the 'readAllProcessOutput' function, since that only returns a single String. For now, my version has an OutputLog class which my equivalent function returns instead (which just holds two strings and the exit code), but i'm not entirely convinced it's the best approach to use. Other than that, its the same.