Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > by-pkgid > 3f6c34b7070a99ab1ba3945149862d5f > files > 4

crossfire-server-1.11.0-4mdv2009.1.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.