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

Yes it's not a config option, but it has been proposed to be an option in the ticket :)
Basically if we run in a daemon we sub-fork, otherwise we do it the old way.

Apparently the only thing we're ever doing with the report in the --onetime case is: exit(report.exit_status) if --detailed-exit-codes is on. Otherwise we're only exit 1/0 depending on if something bad happened.

Unfortunately the Puppet::Agent code is much more open than what the client use. So we can either close it and only report a status code (which can be returned from the forked process) or stay like this and don't care :)