]> arthur.barton.de Git - netatalk.git/commitdiff
exit instead of afp_exit, exit handlers are registered with atexit
authorFrank Lahm <franklahm@googlemail.com>
Fri, 18 Feb 2011 12:57:35 +0000 (13:57 +0100)
committerFrank Lahm <franklahm@googlemail.com>
Fri, 18 Feb 2011 12:57:35 +0000 (13:57 +0100)
etc/afpd/main.c

index 2270db48daf03a0f862f45106ef1027c11a572b0..84ca41274936e01eee6d3d457214ce596ccfbf5c 100644 (file)
@@ -321,10 +321,10 @@ int main(int ac, char **av)
     /* Initialize */
     cnid_init();
     if (locktable_init() != 0)
-        afp_exit(EXITERR_SYS);
+        exit(EXITERR_SYS);
 #if 0
     if (rpc_init("127.0.0.1", 4701) != 0)
-        afp_exit(EXITERR_SYS);
+        exit(EXITERR_SYS);
 #endif
     
     /* watch atp, dsi sockets and ipc parent/child file descriptor. */