$Id$
+2005.10.xx -- Version 2.1-beta5
+
+* More PKCS#11 additions/changes (Alon Bar-Lev).
+
2005.10.17 -- Version 2.1-beta4
* Fixed bug introduced in 2.1-beta3 where management
AC_PREREQ(2.50)
-AC_INIT([OpenVPN], [2.1_beta4], [openvpn-users@lists.sourceforge.net], [openvpn])
+AC_INIT([OpenVPN], [2.1_beta5], [openvpn-users@lists.sourceforge.net], [openvpn])
AM_CONFIG_HEADER(config.h)
AC_CONFIG_SRCDIR(syshead.h)
static void
do_init_first_time (struct context *c)
{
- if (c->first_time && !c->c2.did_we_daemonize)
+ if (c->first_time && !c->did_we_daemonize)
{
/* get user and/or group that we want to setuid/setgid to */
c->c2.uid_gid_specified =
get_pid_file (c->options.writepid, &c->c2.pid_state);
/* become a daemon if --daemon */
- c->c2.did_we_daemonize = possibly_become_daemon (&c->options, c->first_time);
+ c->did_we_daemonize = possibly_become_daemon (&c->options, c->first_time);
/* should we disable paging? */
- if (c->options.mlock && c->c2.did_we_daemonize)
+ if (c->options.mlock && c->did_we_daemonize)
do_mlockall (true); /* call again in case we daemonized */
/* save process ID in a file */
struct user_state user_state;
struct group_state group_state;
- /* temporary variable */
- bool did_we_daemonize;
-
/* should we print R|W|r|w to console on packet transfers? */
bool log_rw;
struct plugin_list *plugins;
bool plugins_owned;
+ /* set to true after we daemonize */
+ bool did_we_daemonize;
+
/* level 1 context is preserved for
SIGUSR1 restarts, but initialized
for SIGHUP restarts */