]> andersk Git - moira.git/commitdiff
close child connections in parent process
authordanw <danw>
Tue, 8 Sep 1998 16:29:03 +0000 (16:29 +0000)
committerdanw <danw>
Tue, 8 Sep 1998 16:29:03 +0000 (16:29 +0000)
(fixes big fd leak and prevents dcm from hanging when an update_server
child process dies)

update/update_server.c

index dd4818b551ef3402c1ff67e5e5da471a56199a95..d93a5dbdb20681d668afb24e4a8cb9c00db24d9f 100644 (file)
@@ -125,6 +125,8 @@ int main(int argc, char **argv)
 
       if (config_lookup("nofork") || (fork() <= 0))
        break;
+
+      close(conn);
     }
 
   /* If the config file contains a line "chroot /dir/name", the
This page took 0.149529 seconds and 5 git commands to generate.