]> 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 291148c3458eeeca77432d751f5813128620d198..c15e0b7dc814a06077bf42ed667f7fb230281d7d 100644 (file)
@@ -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);