masterzen/puppet — comment on commit 0530b687b690652c880668e04938d107362a0177
File: lib/puppet/agent.rb line 12
By masterzen:

We can't fork in the --onetime case because we rely on the fact that we get the report out of the transaction, and the analysis of said report is done in the agent main code. Thus if we fork, the report will be generated in the child process but we want the report to be available in the main process. Of course we could solve this issue by using pipes between the process, and send the report other there. Or moving the code in the child process...
None of those options were fitting my 'small patch' definition.