hell_fire
Member-
Content Count
8 -
Joined
-
Last visited
-
Medals
Community Reputation
0 NeutralAbout hell_fire
-
Rank
Private
-
heres a patch for the tolower program, checks for the exact filename of "flashpoint.cfg" (case sensitive) in the current directory before converting filenames. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> --- tolower.c.orig 2004-05-09 16:57:56.000000000 +1000 +++ tolower.c 2004-05-09 17:15:03.000000000 +1000 @@ -14,6 +14,7 @@ #include <sys/stat.h> #include <dirent.h> #include <unistd.h> +#include <fcntl.h> #include <string.h> #include <ctype.h> @@ -88,6 +89,18 @@ { /* TODO: command-line argument: directory to convert */ /* TODO: -v (verbose) */ + + /* Sanity check added by Adam Smith (Hell_Fire) */ + int fd; + fd = open("./flashpoint.cfg", O_RDONLY); + if (fd == -1) { + printf("Error: The file \"flashpoint.cfg\" does not exist in current directory.\nSanity check failed, exiting\n"); + exit(1); + } else { + close (fd); + } + /* Sanity check complete */ + int converted = convertDirectory("."); if ( converted <= 0 ) printf("No file-names were converted\n"); Simply put this into a file in the OFP directory (eg, tolower.patch), run the command "patch -i tolower.patch", then rebuild the executable using "gcc tolower.c -o tolower" Enjoy (this patch is classified under the GPL if anyone has any problems :P Its to small for me to care really)
-
Linux server crashes immediately with 2.6.5 kernel
hell_fire replied to SirReal's topic in TROUBLESHOOTING
Done, posting it in its own thread... Edit: yeah, i know it won't help, but it does spread the load as the server can have one CPU all by itself :P -
All other processes work fine, the server process works poorly, thats not to say it doesn't work, it responds, but over LAN (in game, connected) is reporting a ping of 300000+ ms, and is very jumpy. #monitor reports server FPS of 0-10, mostly between 0-3. But like you said, your running it fine... so maybe theres something else there.
-
Recompiled and tested, works fine on one CPU... Is there a different server binary compiled with SMP support or do I have to find a sechedule priortizer (i've done that before, but I prefer to still have a fully working SMP) Next i'll try 2.4.26 and 2.6.5 and see how it affects it
-
Linux server crashes immediately with 2.6.5 kernel
hell_fire replied to SirReal's topic in TROUBLESHOOTING
hey! i got it for free, a total of 1GHz between the CPUs, and it doesn't have to handle much, just a few mates at the occasional LAN... see my other thread about the race conditions on SMP boxes though -
Kernel is a stock 2.4.22 freshly compiled with SMP. I'm recompiling now with another with SMP disabled to see the differences.
-
Something major happens when running the server on Linux with SMP enabled. Happens with other game servers to... Massive race conditions... More to come...
-
Linux server crashes immediately with 2.6.5 kernel
hell_fire replied to SirReal's topic in TROUBLESHOOTING
Check that nscd is running, I missed this because Slackware doesn't run NSCD by default, and my crash was at exactly the same place... I'm running a Dual P3-500 box with Slackware 9.1 Edit: Opps, didn't see the thread was in April... :P I was just searchin Another Edit: Why is there still a reliance on nscd?