From 525d75316848f79208101e48a54e21396464c98b Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Fri, 26 Nov 2010 22:05:28 +0100 Subject: Move daemonize() code to be called in the firewall child thread only The eurephia plug-in would daemonize the OpenVPN process by calling daemonize() too early. This patch renames daemoinze() to efw_daemonize() and calls it only in the firewall child process. Signed-off-by: David Sommerseth --- plugin/firewall/eurephiafw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugin/firewall/eurephiafw.h') diff --git a/plugin/firewall/eurephiafw.h b/plugin/firewall/eurephiafw.h index 7703fe5..72dc9bd 100644 --- a/plugin/firewall/eurephiafw.h +++ b/plugin/firewall/eurephiafw.h @@ -35,7 +35,7 @@ int eFW_load(eurephiaCTX *ctx, const char *intf); int eFW_unload(eurephiaCTX *ctx); -void eFW_StartFirewall(eurephiaCTX *ctx); +void eFW_StartFirewall(eurephiaCTX *ctx, const int daemon, const int logredir); void eFW_StopFirewall(eurephiaCTX *ctx); int eFW_UpdateFirewall(eurephiaCTX *ctx, eFWupdateRequest *request); -- cgit