diff options
Diffstat (limited to 'vcl/unx/generic/plugadapt/salplug.cxx')
-rw-r--r-- | vcl/unx/generic/plugadapt/salplug.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/vcl/unx/generic/plugadapt/salplug.cxx b/vcl/unx/generic/plugadapt/salplug.cxx index 51321b8c47ef..d707760eb5df 100644 --- a/vcl/unx/generic/plugadapt/salplug.cxx +++ b/vcl/unx/generic/plugadapt/salplug.cxx @@ -267,13 +267,16 @@ void DeInitSalMain() { } -void SalAbort( const XubString& rErrorText ) +void SalAbort( const XubString& rErrorText, bool bDumpCore ) { if( !rErrorText.Len() ) std::fprintf( stderr, "Application Error\n" ); else std::fprintf( stderr, "%s\n", rtl::OUStringToOString(rErrorText, osl_getThreadTextEncoding()).getStr() ); - exit(-1); + if( bDumpCore ) + abort(); + else + _exit(1); } static const char * desktop_strings[] = { "none", "unknown", "GNOME", "KDE", "KDE4" }; |