Fix crashing on Linux

This commit is contained in:
Cheng Zhao 2015-10-04 20:08:19 +08:00
parent a2a4970f5f
commit d4bfeff6ad

View file

@ -53,6 +53,7 @@ void AtomBrowserMainParts::RegisterDestructionCallback(
}
void AtomBrowserMainParts::PreEarlyInitialization() {
brightray::BrowserMainParts::PreEarlyInitialization();
#if defined(OS_POSIX)
HandleSIGCHLD();
#endif
@ -119,6 +120,7 @@ void AtomBrowserMainParts::PreMainMessageLoopRun() {
}
void AtomBrowserMainParts::PostMainMessageLoopStart() {
brightray::BrowserMainParts::PostMainMessageLoopStart();
#if defined(OS_POSIX)
HandleShutdownSignals();
#endif