mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-22 14:18:09 +00:00
feat(src/externals/single-application/SingleApplication): log abnormally exit
This commit is contained in:
parent
b1b19d6dbe
commit
e4bbfc820d
1 changed files with 5 additions and 0 deletions
|
|
@ -21,6 +21,7 @@
|
|||
// THE SOFTWARE.
|
||||
|
||||
#include <cstdlib>
|
||||
#include <iostream>
|
||||
|
||||
#include <QtCore/QDir>
|
||||
#include <QtCore/QProcess>
|
||||
|
|
@ -52,6 +53,8 @@ static const char SecondaryInstance = 'S';
|
|||
static const char Reconnect = 'R';
|
||||
static const char InvalidConnection = '\0';
|
||||
|
||||
using namespace std;
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
SingleApplicationPrivate::SingleApplicationPrivate (SingleApplication *q_ptr) : q_ptr(q_ptr) {
|
||||
|
|
@ -250,6 +253,8 @@ void SingleApplicationPrivate::connectToPrimary (int msecs, char connectionType)
|
|||
delete sharedMem.back();
|
||||
sharedMem.pop_back();
|
||||
}
|
||||
|
||||
cout << "[PROCESS ABNORMALLY TERMINATED]: " << signum << endl;
|
||||
::exit(128 + signum);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue