1
0
Fork 0

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 11 years ago
parent eefa931598
commit ec7f54687d

@ -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