java plugin: Wait with the configuration until the daemon has forked.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Mon, 17 Aug 2009 08:39:55 +0000 (10:39 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Mon, 17 Aug 2009 08:39:55 +0000 (10:39 +0200)
commitde38c1a6e44cadfc88fc6e1d0919663f0c08bbdc
tree303e4981425082fd3e6ca4bd67e12283002f42a9
parent8f40e8dacad2bfcb9d659e12740aa3ebc15ada65
java plugin: Wait with the configuration until the daemon has forked.

Passing the configuration to Java-based plugins requires the JVM to be
active and running. However, the JVM starts some threads that are lost
when the daemon forks to the background.

This patch changes the behavior of the Java plugin to copy the
configuration blocks found to a local variable and run the configuration
of the Java-based plugins from the `init' callback, because it is
invoked after the daemon has forked to the background.
src/java.c