--- deliantra/server/common/utils.C 2007/04/23 18:09:57 1.51 +++ deliantra/server/common/utils.C 2007/04/27 20:06:37 1.54 @@ -99,7 +99,7 @@ if (r_max < 1 || r_max < r_min) { - LOG (llevError, "Calling random_roll with min=%d max=%d\n", r_min, r_max); + LOG (llevError | logBacktrace, "Calling random_roll with min=%d max=%d\n", r_min, r_max); return r_min; } @@ -132,7 +132,7 @@ if (max < 1 || diff < 1) { - LOG (llevError, "Calling random_roll with min=%" PRId64 " max=%" PRId64 "\n", min, max); + LOG (llevError | logBacktrace, "Calling random_roll64 with min=%" PRId64 " max=%" PRId64 "\n", min, max); return (min); /* avoids a float exception */ } @@ -555,6 +555,9 @@ if (!fork ()) { signal (SIGABRT, SIG_DFL); + // try to put corefiles into a subdirectory, if existing, to allow + // an administrator to reduce the I/O load. + chdir ("cores"); abort (); }