summaryrefslogtreecommitdiff
path: root/sbin/hastd/hastd.c
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2010-10-24 15:38:58 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2010-10-24 15:38:58 +0000
commit2964aeb34a1b0b2a1fa3c3aa34d253a99e7fc71a (patch)
treeed2dfd64121e34f1616688003a276916637e159c /sbin/hastd/hastd.c
parent16dc6e122a3f31e3068d041403cdb88782ed82fc (diff)
downloadsrc-test2-2964aeb34a1b0b2a1fa3c3aa34d253a99e7fc71a.tar.gz
src-test2-2964aeb34a1b0b2a1fa3c3aa34d253a99e7fc71a.zip
Notes
Diffstat (limited to 'sbin/hastd/hastd.c')
-rw-r--r--sbin/hastd/hastd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/hastd/hastd.c b/sbin/hastd/hastd.c
index a025d6b8aa4e..cb61811246c0 100644
--- a/sbin/hastd/hastd.c
+++ b/sbin/hastd/hastd.c
@@ -701,8 +701,6 @@ main(int argc, char *argv[])
int debuglevel;
sigset_t mask;
- g_gate_load();
-
foreground = false;
debuglevel = 0;
pidfile = HASTD_PIDFILE;
@@ -736,6 +734,8 @@ main(int argc, char *argv[])
pjdlog_debug_set(debuglevel);
+ g_gate_load();
+
pfh = pidfile_open(pidfile, 0600, &otherpid);
if (pfh == NULL) {
if (errno == EEXIST) {