X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=netatalk.git;a=blobdiff_plain;f=etc%2Fafpd%2Fmain.c;h=ac1ce217b31904593f30b0ce4aa5d57617df323a;hp=516adf16c6f19d43941b9bf37071594fe2f219f0;hb=48af5314c0219b42d13057d907e6837de437a015;hpb=42eb54de3f6373cd394fbd6abfb86d85c8dde935 diff --git a/etc/afpd/main.c b/etc/afpd/main.c index 516adf16..ac1ce217 100644 --- a/etc/afpd/main.c +++ b/etc/afpd/main.c @@ -312,6 +312,11 @@ int main(int ac, char **av) sigaddset(&sigs, SIGCHLD); pthread_sigmask(SIG_BLOCK, &sigs, NULL); +#ifdef HAVE_DBUS_GLIB + /* Run dbus AFP statics thread */ + if (obj.options.flags & OPTION_DBUS_AFPSTATS) + (void)afpstats_init(server_children); +#endif if (configinit(&obj) != 0) { LOG(log_error, logtype_afpd, "main: no servers configured"); afp_exit(EXITERR_CONF); @@ -327,12 +332,6 @@ int main(int ac, char **av) /* set limits */ (void)setlimits(); -#ifdef HAVE_DBUS_GLIB - /* Run dbus AFP statics thread */ - if (obj.options.flags & OPTION_DBUS_AFPSTATS) - (void)afpstats_init(server_children); -#endif - afp_child_t *child; int recon_ipc_fd; pid_t pid;