Adding a way to create an ExceptionHandler that takes in a file descriptor

where the minidump should be created, without the need of opening any other
file.

BUG=None
TEST=Run unit-tests.



git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1007 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
jcivelli@chromium.org 2012-08-09 22:59:58 +00:00
parent 1c3f79dfeb
commit 43c933d7f8
13 changed files with 669 additions and 412 deletions

View file

@ -51,7 +51,7 @@ namespace google_breakpad {
class AutoTempDir {
public:
AutoTempDir() {
char temp_dir[] = TEMPDIR "/breakpad.XXXXXXXXXX";
char temp_dir[] = TEMPDIR "/breakpad.XXXXXX";
EXPECT_TRUE(mkdtemp(temp_dir) != NULL);
path_.assign(temp_dir);
}