Load geom_gate.ko module after parsing arguments.

MFC after:	3 days
This commit is contained in:
Pawel Jakub Dawidek 2010-10-24 15:38:58 +00:00
parent 16dc6e122a
commit 2964aeb34a

View File

@ -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) {