- if (cleanup_flags & CLEANUP_FIFO) /* Fifo also serves as lockfile that */
- { /* affirms the running of a server */
- unlink(world.path_in); /* instance. Therefore it should be */
- } /* the last thing to be deleted. */
+ if (cleanup_flags & CLEANUP_IN)
+ {
+ try_fclose(world.file_in, f_name);
+ unlink(world.path_in);
+ }
+ if (cleanup_flags & CLEANUP_OUT)
+ {
+ try_fclose(world.file_out, f_name);
+ free(world.server_test);
+ unlink(world.path_out);
+ }