* Close the fd to our control file.
[citadel.git] / citadel / citserver.c
index 4a3dc8194b7f555d3be8b1bc14b2242ac0d0a45b..a4f5e4cd4cbd9d7b8d76de1f348e17ef89f1669b 100644 (file)
@@ -165,11 +165,13 @@ void master_cleanup(int exitcode) {
                        sleep(32767);
                }
        }
+       
+       release_control();
 
        /* Now go away. */
        lprintf(CTDL_NOTICE, "citserver: Exiting with status %d\n", exitcode);
        fflush(stdout); fflush(stderr);
-
+       
        exit(exitcode);
 }