Fixes: NB#246767 - Invoker is killed when used to maximize already running single-instance application

RevBy: Jussi Lind
pull/1/head
Alexey Shilov 15 years ago
parent 502c9caa08
commit aabc0182eb

1
debian/changelog vendored

@ -6,6 +6,7 @@ applauncherd (0.27.0) unstable; urgency=low
* Fixes: NB#244103 - Device hangs on closing application in connecting view while configuring MFE account
* Fixes: NB#243857 - Mismatched new[] - delete in applauncherd
* Fixes: NB#238937 - minor splash-screen bugs
* Fixes: NB#246767 - Invoker is killed when used to maximize already running single-instance application
-- Olli Leppanen <olli.leppanen@nokia.com> Fri, 08 Apr 2011 15:08:24 +0300

@ -128,6 +128,11 @@ void Booster::initialize(int initialArgc, char ** initialArgv, int newBoosterLau
Logger::logErrorAndDie(EXIT_FAILURE, "Booster: Couldn't read command\n");
}
// Send parent process a message that it can create a new booster,
// send pid of invoker, booster respawn value and invoker socket connection.
// Must be called before possible exit during single instatance check.
sendDataToParent();
// Run process as single instance if requested
if (m_appData->singleInstance())
{
@ -160,10 +165,6 @@ void Booster::initialize(int initialArgc, char ** initialArgv, int newBoosterLau
// has been read from invoker in receiveDataFromInvoker().
renameProcess(initialArgc, initialArgv, m_appData->argc(), m_appData->argv());
// Send parent process a message that it can create a new booster,
// send pid of invoker, booster respawn value and invoker socket connection
sendDataToParent();
close(boosterLauncherSocket());
// close invoker socket connection

Loading…
Cancel
Save