Added to library function to check endianess
[gapil.git] / sources / FortuneServer.c
index 7e3dfb6ca86ff3b52df8ecdd586d1d3f7e05c2be..c1c11462e81065e8d6c81fba04aef4ce35641310 100644 (file)
@@ -26,7 +26,7 @@
  *
  * Usage: fortuned -h give all info
  *
- * $Id: FortuneServer.c,v 1.5 2002/12/03 11:06:05 piccardi Exp $
+ * $Id: FortuneServer.c,v 1.8 2003/05/02 09:55:13 piccardi Exp $
  *
  ****************************************************************/
 /* 
@@ -56,7 +56,7 @@ int main(int argc, char *argv[])
 {
 /* Variables definition */
     int i, n = 0;
-    char *fortunefilename = "/usr/share/games/fortunes/italia";
+    char *fortunefilename = "/usr/share/games/fortunes/linux";
     char **fortune;
     char line[80];
     int fifo_server, fifo_client;
@@ -112,6 +112,7 @@ int main(int argc, char *argv[])
            exit(1);
        }
     }
+    daemon(0, 0);
     /* open fifo two times to avoid EOF */
     fifo_server = open(fifoname, O_RDONLY);
     if (fifo_server < 0) {