diff options
author | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2010-10-24 15:38:58 +0000 |
---|---|---|
committer | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2010-10-24 15:38:58 +0000 |
commit | 2964aeb34a1b0b2a1fa3c3aa34d253a99e7fc71a (patch) | |
tree | ed2dfd64121e34f1616688003a276916637e159c /sbin/hastd/hastd.c | |
parent | 16dc6e122a3f31e3068d041403cdb88782ed82fc (diff) | |
download | src-2964aeb34a1b0b2a1fa3c3aa34d253a99e7fc71a.tar.gz src-2964aeb34a1b0b2a1fa3c3aa34d253a99e7fc71a.zip |
Load geom_gate.ko module after parsing arguments.
MFC after: 3 days
Notes
Notes:
svn path=/head/; revision=214273
Diffstat (limited to 'sbin/hastd/hastd.c')
-rw-r--r-- | sbin/hastd/hastd.c | 4 |
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) { |