[PATCH] startup: allow multiple tries to connect to other soffice in...

Pierre-Eric Pelloux-Prayer (via Code Review) gerrit at gerrit.libreoffice.org
Fri Nov 16 11:15:00 PST 2012


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/1089

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/89/1089/1

startup: allow multiple tries to connect to other soffice instance

On startup if new soffice instance (S2) detects another soffice (S1),
S2 will starts in 'connect to soffice S1 pipe' mode. Then S2 will
establish a dialog with S1.
But if S1 exits before dialog establishment, S2 will fail to start
and return a IPC_STATUS_BOOTSTRAP_ERROR.

This patch fixes this : if dialog establishment fails, S2 will go back
to the is-there-any-other-soffice-running-? step (after 3 failures,
IPC_STATUS_BOOTSTRAP_ERROR is returned).

Change-Id: I2e099a5804e1e8dd535cfd31ef454cffa44efa62
---
M desktop/source/app/officeipcthread.cxx
1 file changed, 36 insertions(+), 16 deletions(-)


--
To view, visit https://gerrit.libreoffice.org/1089
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2e099a5804e1e8dd535cfd31ef454cffa44efa62
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Pierre-Eric Pelloux-Prayer <pierre-eric at lanedo.com>



More information about the LibreOffice mailing list