Browse Source

fix coredump path should be xcache.coredump_directory

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@916 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 10 years ago
parent
commit
ec7f54687d
  1. 9
      xcache.c

9
xcache.c

@ -3422,14 +3422,7 @@ static void xcache_init_crash_handler() /* {{{ */
return;
}
/* work out a good place for the dump file */
{
char tmpPath[_MAX_PATH];
if (!GetTempPath(_MAX_PATH, tmpPath)) {
strcpy(tmpPath, "c:\\temp");
}
sprintf(crash_dumpPath, "%s\\php-%s-xcache-%s-%lu.dmp", PHP_VERSION, XCACHE_VERSION, (unsigned long) GetCurrentProcessId());
}
sprintf(crash_dumpPath, "%s\\php-%s-xcache-%s-%lu.dmp", xc_coredump_dir, PHP_VERSION, XCACHE_VERSION, (unsigned long) GetCurrentProcessId());
oldFilter = SetUnhandledExceptionFilter(&miniDumperFilter);
}

Loading…
Cancel
Save