MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / initBreakpad

Method initBreakpad

Engine/AppManagerPrivate.cpp:308–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306
307#ifdef NATRON_USE_BREAKPAD
308void
309AppManagerPrivate::initBreakpad(const QString& breakpadPipePath,
310 const QString& breakpadComPipePath,
311 int breakpad_client_fd)
312{
313 assert(!breakpadHandler);
314 createBreakpadHandler(breakpadPipePath, breakpad_client_fd);
315
316 /*
317 We check periodically that the crash reporter process is still alive. If the user killed it somehow, then we want
318 the Natron process to terminate
319 */
320 breakpadAliveThread = std::make_shared<ExistenceCheckerThread>(QString::fromUtf8(NATRON_NATRON_TO_BREAKPAD_EXISTENCE_CHECK),
321 QString::fromUtf8(NATRON_NATRON_TO_BREAKPAD_EXISTENCE_CHECK_ACK),
322 breakpadComPipePath);
323 QObject::connect( breakpadAliveThread.get(), SIGNAL(otherProcessUnreachable()), appPTR, SLOT(onCrashReporterNoLongerResponding()) );
324 breakpadAliveThread->start();
325}
326
327void
328AppManagerPrivate::createBreakpadHandler(const QString& breakpadPipePath,

Callers 1

loadInternalMethod · 0.80

Calls 2

startMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected