author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 17 Aug 2009 08:39:55 +0000 (10:39 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 17 Aug 2009 08:39:55 +0000 (10:39 +0200) | ||
commit | de38c1a6e44cadfc88fc6e1d0919663f0c08bbdc | |
tree | 303e4981425082fd3e6ca4bd67e12283002f42a9 | tree | snapshot |
parent | 8f40e8dacad2bfcb9d659e12740aa3ebc15ada65 | commit | diff |
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.
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 | diff | blob | history |