aboutsummaryrefslogtreecommitdiff
path: root/manage.c
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2005-12-14 01:09:11 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2005-12-14 01:09:11 +0000
commit92bbb061acc027bbe29a8973422a60eda5bff88e (patch)
tree8e0831c042ebf8eb59992463a499dbe25851a630 /manage.c
parentDon't warn user if he uses user/group/chroot and (diff)
downloadopenvpn-92bbb061acc027bbe29a8973422a60eda5bff88e.tar.xz
svn merge -r 845:854 $SO/trunk/openvpn .
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@855 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to '')
-rw-r--r--manage.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/manage.c b/manage.c
index dca5500..127e933 100644
--- a/manage.c
+++ b/manage.c
@@ -1863,6 +1863,16 @@ management_would_hold (struct management *man)
}
/*
+ * Return true if (from the management interface's perspective) OpenVPN should
+ * daemonize.
+ */
+bool
+management_should_daemonize (struct management *man)
+{
+ return management_would_hold (man) || man->settings.up_query_passwords;
+}
+
+/*
* If the hold flag is enabled, hibernate until a management client releases the hold.
* Return true if the caller should not sleep for an additional time interval.
*/