Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
a76829b3
Kaydet (Commit)
a76829b3
authored
Eki 11, 2010
tarafından
Norbert Thiebaud
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
merge vosremoval-signal patch
üst
8490c250
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
11 deletions
+8
-11
app.cxx
desktop/source/app/app.cxx
+4
-4
officeipcthread.cxx
desktop/source/app/officeipcthread.cxx
+2
-2
officeipcthread.hxx
desktop/source/app/officeipcthread.hxx
+2
-5
No files found.
desktop/source/app/app.cxx
Dosyayı görüntüle @
a76829b3
...
...
@@ -188,7 +188,7 @@ ResMgr* desktop::Desktop::pResMgr = 0;
namespace
desktop
{
static
SalMainPipeExchangeSignalHandler
*
pSignalHandler
=
0
;
static
oslSignalHandler
pSignalHandler
=
0
;
static
sal_Bool
_bCrashReporterEnabled
=
sal_True
;
static
const
::
rtl
::
OUString
CFG_PACKAGE_COMMON_HELP
(
RTL_CONSTASCII_USTRINGPARAM
(
"org.openoffice.Office.Common/Help"
));
...
...
@@ -737,7 +737,7 @@ void Desktop::Init()
// disable IPC thread in an instance that is just showing a help message
OfficeIPCThread
::
DisableOfficeIPCThread
();
}
pSignalHandler
=
new
SalMainPipeExchangeSignalHandler
;
pSignalHandler
=
osl_addSignalHandler
(
SalMainPipeExchangeSignal_impl
,
NULL
)
;
}
}
...
...
@@ -772,7 +772,7 @@ void Desktop::DeInit()
OfficeIPCThread
::
DisableOfficeIPCThread
();
if
(
pSignalHandler
)
DELETEZ
(
pSignalHandler
);
osl_removeSignalHandler
(
pSignalHandler
);
}
catch
(
RuntimeException
&
)
{
// someone threw an exception during shutdown
// this will leave some garbage behind..
...
...
@@ -1467,7 +1467,7 @@ USHORT Desktop::Exception(USHORT nError)
{
OfficeIPCThread
::
DisableOfficeIPCThread
();
if
(
pSignalHandler
)
DELETEZ
(
pSignalHandler
);
osl_removeSignalHandler
(
pSignalHandler
);
restartOnMac
(
false
);
_exit
(
ExitHelper
::
E_CRASH_WITH_RESTART
);
}
...
...
desktop/source/app/officeipcthread.cxx
Dosyayı görüntüle @
a76829b3
...
...
@@ -296,11 +296,11 @@ void ImplPostProcessDocumentsEvent( ProcessDocumentsRequest* pEvent )
Application
::
PostUserEvent
(
STATIC_LINK
(
NULL
,
ProcessEventsClass_Impl
,
ProcessDocumentsEvent
),
pEvent
);
}
OSignalHandler
::
TSignalAction
SAL_CALL
SalMainPipeExchangeSignalHandler
::
signal
(
TSignalInfo
*
pInfo
)
oslSignalAction
SAL_CALL
SalMainPipeExchangeSignal_impl
(
void
*
/*pData*/
,
oslSignalInfo
*
pInfo
)
{
if
(
pInfo
->
Signal
==
osl_Signal_Terminate
)
OfficeIPCThread
::
DisableOfficeIPCThread
();
return
(
TAction_CallNextHandler
)
;
return
osl_Signal_ActCallNextHdl
;
}
// ----------------------------------------------------------------------------
...
...
desktop/source/app/officeipcthread.hxx
Dosyayı görüntüle @
a76829b3
...
...
@@ -32,7 +32,7 @@
#include <com/sun/star/frame/XTerminateListener.hpp>
#include <vos/pipe.hxx>
#include <osl/security.hxx>
#include <
vos/signal.hxx
>
#include <
osl/signal.h
>
#include <rtl/ustring.hxx>
#include <cppuhelper/implbase2.hxx>
#include <osl/conditn.hxx>
...
...
@@ -42,10 +42,7 @@
namespace
desktop
{
class
SalMainPipeExchangeSignalHandler
:
public
vos
::
OSignalHandler
{
virtual
TSignalAction
SAL_CALL
signal
(
TSignalInfo
*
pInfo
);
};
oslSignalAction
SAL_CALL
SalMainPipeExchangeSignal_impl
(
void
*
/*pData*/
,
oslSignalInfo
*
pInfo
);
// A request for the current office
// that was given by command line or by IPC pipe communication.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment