home · contact · privacy
Also built checks for server config files, and accordingly reformatted those.
[plomrogue] / src / server / main.c
index 6cf6b413bc7c92215cd4b4ecd1386d28d6f88575..09ce530dea96033af7c0fec03829bb72b2fdf74e 100644 (file)
@@ -5,6 +5,7 @@
 #include <stdlib.h> /* exit() */
 #include <sys/stat.h> /* mkfifo(), mkdir() */
 #include <unistd.h> /* access() */
+#include "../common/err_try_fgets.h" /* set_err_try_fgets_delim() */
 #include "../common/rexit.h" /* exit_err, exit_trouble(), set_cleanup_func() */
 #include "cleanup.h" /* set_cleanup_flag(), cleanup() */
 #include "init.h" /* run_game(), obey_argv() */
@@ -44,6 +45,7 @@ int main(int argc, char ** argv)
     world.path_out    = "server/out";
     world.path_record = "record";
     world.tmp_suffix  = "_tmp";
+    set_err_try_fgets_delim("%%\n");
 
     /* Treat world.path_in file as server process lock file. */
     char * err = "Found pre-existing input fifo file. This indicates another "