--- crossfire-1.7.0/server/daemon.c.detach 2002-03-22 15:46:21.000000000 +0800 +++ crossfire-1.7.0/server/daemon.c 2005-02-09 01:13:43.443580720 +0800 @@ -96,9 +96,9 @@ * Close standard file descriptors and get rid of controlling tty */ - close (0); - close (1); - close (2); + fclose (stdin); + fclose (stdout); + fclose (stderr); /* * Set up the standard file descriptors.