]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/main.c
netatalk: fix a crash on Solaris when registering with mDNS
[netatalk.git] / etc / afpd / main.c
index e612a01cae9615f3264378d4df11ff37a4832fa6..51c588fd5f0e1f12b2febdef5189990e3acb0346 100644 (file)
@@ -37,7 +37,6 @@
 #include "status.h"
 #include "fork.h"
 #include "uam_auth.h"
-#include "afp_zeroconf.h"
 #include "afpstats.h"
 
 #define ASEV_THRESHHOLD 10
@@ -392,6 +391,11 @@ int main(int ac, char **av)
             nologin = 0;
             reloadconfig = 0;
             errno = saveerrno;
+
+            if (server_children) {
+                server_child_kill(server_children, SIGHUP);
+            }
+
             continue;
         }