]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/afp_config.c
Closing of the parent IPC fd at the right place
[netatalk.git] / etc / afpd / afp_config.c
index 7f5fd1f1fc9e32d10f3adc16c85da1cfdfdae4b6..c15e0b7dc814a06077bf42ed667f7fb230281d7d 100644 (file)
@@ -36,7 +36,7 @@
 #include <atalk/ldapconfig.h>
 #endif
 
-#include "globals.h"
+#include <atalk/globals.h>
 #include "afp_config.h"
 #include "uam_auth.h"
 #include "status.h"
@@ -231,7 +231,6 @@ static afp_child_t *dsi_start(AFPConfig *config, AFPConfig *configs,
     if (parent_or_child == 1) {
         configfree(configs, config);
         config->obj.ipc_fd = child->ipc_fds[1];
-        close(child->ipc_fds[0]); /* Close parent IPC fd */
         free(child);
         afp_over_dsi(&config->obj); /* start a session */
         exit (0);