diff options
author | James Yonan <james@openvpn.net> | 2011-03-13 06:59:25 +0000 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2011-04-25 22:13:22 +0200 |
commit | 1c5ff7722dbd3e32aa3e5b7d5cb77773f083472d (patch) | |
tree | 7eccc7d6ba60b93adccf7c473f2489da7db0a024 /error.c | |
parent | 6c34e74f1340a72ab7dce077e4d326f03989322c (diff) | |
download | openvpn-1c5ff7722dbd3e32aa3e5b7d5cb77773f083472d.tar.gz openvpn-1c5ff7722dbd3e32aa3e5b7d5cb77773f083472d.tar.xz openvpn-1c5ff7722dbd3e32aa3e5b7d5cb77773f083472d.zip |
Added optional journal directory argument to "port-share" directive, for reporting client IP origins of proxied connections.
git-svn-id: http://svn.openvpn.net/projects/branches/BETA21@7031 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'error.c')
-rw-r--r-- | error.c | 29 |
1 files changed, 16 insertions, 13 deletions
@@ -353,7 +353,7 @@ void x_msg (const unsigned int flags, const char *format, ...) } if (flags & M_FATAL) - msg (M_INFO, "Exiting"); + msg (M_INFO, "Exiting due to fatal error"); mutex_unlock_static (L_MSG); @@ -690,35 +690,38 @@ msg_thread_uninit (void) void openvpn_exit (const int status) { - void tun_abort(); + if (!forked) + { + void tun_abort(); #ifdef ENABLE_PLUGIN - void plugin_abort (void); + void plugin_abort (void); #endif - tun_abort(); + tun_abort(); #ifdef WIN32 - uninit_win32 (); + uninit_win32 (); #endif - close_syslog (); + close_syslog (); #ifdef ENABLE_PLUGIN - plugin_abort (); + plugin_abort (); #endif #if PORT_SHARE - if (port_share) - port_share_abort (port_share); + if (port_share) + port_share_abort (port_share); #endif #ifdef ABORT_ON_ERROR - if (status == OPENVPN_EXIT_STATUS_ERROR) - abort (); + if (status == OPENVPN_EXIT_STATUS_ERROR) + abort (); #endif - if (status == OPENVPN_EXIT_STATUS_GOOD) - perf_output_results (); + if (status == OPENVPN_EXIT_STATUS_GOOD) + perf_output_results (); + } exit (status); } |