summaryrefslogtreecommitdiffstats
path: root/error.c
diff options
context:
space:
mode:
authorJames Yonan <james@openvpn.net>2011-10-18 08:12:51 +0000
committerDavid Sommerseth <davids@redhat.com>2011-12-14 17:03:24 +0100
commitffea644ce62a67ea06e375c17277cea4e9cb9873 (patch)
treef9d897b7b3b6d54474d846de9a54ffc1b1c7cc60 /error.c
parent359adbf136e07011ad6733c3ba679b2d5cc47fdc (diff)
downloadopenvpn-ffea644ce62a67ea06e375c17277cea4e9cb9873.tar.gz
openvpn-ffea644ce62a67ea06e375c17277cea4e9cb9873.tar.xz
openvpn-ffea644ce62a67ea06e375c17277cea4e9cb9873.zip
Added "memstats" option to maintain real-time operating stats
in a memory-mapped file. Version 2.1.16 git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@7653 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'error.c')
-rw-r--r--error.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/error.c b/error.c
index a0de53e..06b383f 100644
--- a/error.c
+++ b/error.c
@@ -35,6 +35,7 @@
#include "status.h"
#include "integer.h"
#include "ps.h"
+#include "mstats.h"
#ifdef USE_CRYPTO
#ifdef USE_OPENSSL
@@ -679,6 +680,10 @@ openvpn_exit (const int status)
port_share_abort (port_share);
#endif
+#ifdef ENABLE_MEMSTATS
+ mstats_close();
+#endif
+
#ifdef ABORT_ON_ERROR
if (status == OPENVPN_EXIT_STATUS_ERROR)
abort ();