ce2b2cd2f0
current pth's version from pkgsrc. It was tested by David Ferlier <david@NetBSD-fr dot org> and it works perfectly, reported in PR pkg/24462.
36 lines
1 KiB
Text
36 lines
1 KiB
Text
$NetBSD: patch-ac,v 1.2 2004/02/21 05:38:29 xtraeme Exp $
|
|
|
|
--- jabberd/jabberd.c.orig 2003-12-19 12:17:00.000000000 +0000
|
|
+++ jabberd/jabberd.c 2003-12-19 12:17:52.000000000 +0000
|
|
@@ -199,15 +199,6 @@
|
|
if(home != NULL && chdir(home))
|
|
fprintf(stderr,"Unable to access home folder %s: %s\n",home,strerror(errno));
|
|
|
|
- /* background ourselves if we have been flagged to do so */
|
|
- if(do_background != 0)
|
|
- {
|
|
- if (fork() != 0)
|
|
- {
|
|
- exit(0);
|
|
- }
|
|
- }
|
|
-
|
|
/* load the config passing the file if it was manually set */
|
|
cfgfile=ghash_get(cmd__line,"c");
|
|
if(configurate(cfgfile))
|
|
@@ -234,6 +225,15 @@
|
|
dynamic_init();
|
|
deliver_init();
|
|
|
|
+ /* background ourselves if we have been flagged to do so */
|
|
+ if(do_background != 0)
|
|
+ {
|
|
+ if (fork() != 0)
|
|
+ {
|
|
+ exit(0);
|
|
+ }
|
|
+ }
|
|
+
|
|
/* everything should be registered for the config pass, validate */
|
|
deliver__flag = 0; /* pause deliver() while starting up */
|
|
if(configo(0))
|