From ec7f54687d6684fa8a05c8ae7af415cb32cf36bd Mon Sep 17 00:00:00 2001 From: Xuefer Date: Sat, 23 Jun 2012 03:39:49 +0000 Subject: [PATCH] fix coredump path should be xcache.coredump_directory git-svn-id: svn://svn.lighttpd.net/xcache/trunk@916 c26eb9a1-5813-0410-bd6c-c2e55f420ca7 --- xcache.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/xcache.c b/xcache.c index 96b82da..b09027a 100644 --- a/xcache.c +++ b/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); }