Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > bf004cbcd1df213029ec513276f30ba2 > files > 2

crossfire-server-1.11.0-3mdv2009.0.src.rpm

--- 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.