svn commit: r214273 - head/sbin/hastd

Pawel Jakub Dawidek pjd at FreeBSD.org
Sun Oct 24 15:38:58 UTC 2010


Author: pjd
Date: Sun Oct 24 15:38:58 2010
New Revision: 214273
URL: http://svn.freebsd.org/changeset/base/214273

Log:
  Load geom_gate.ko module after parsing arguments.
  
  MFC after:	3 days

Modified:
  head/sbin/hastd/hastd.c

Modified: head/sbin/hastd/hastd.c
==============================================================================
--- head/sbin/hastd/hastd.c	Sun Oct 24 15:31:41 2010	(r214272)
+++ head/sbin/hastd/hastd.c	Sun Oct 24 15:38:58 2010	(r214273)
@@ -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) {


More information about the svn-src-head mailing list