• Pierre-Eric Pelloux-Prayer's avatar
    startup: more reliable startup of multiple instances · 0dce7eae
    Pierre-Eric Pelloux-Prayer yazdı
    Until now, when a new soffice instance (S2) started and tried to
    connect to an existing soffice process (S1), S2 may have failed to
    boostrap due to race condition in communication over the shared pipe.
    
    S1 can be shutdown after S2 connected to it but _before_ S1 handled its
    arguments (code run after 'accept' method in OfficeIPCThread).
    This patch introduces a new message, sent by the main soffice after it
    has called accept if and only if it's not shutting down (see mbDowning
     member).
    The other soffice waits for this message before enabling going in
     PIPE_CONNECTED mode. If soffice fails to receive this message, pipe mode is
    left unchanged and after a quick pause, it will try again.
    
    Change-Id: I2e099a5804e1e8dd535cfd31ef454cffa44efa62
    Signed-off-by: 's avatarStephan Bergmann <sbergman@redhat.com>
    0dce7eae
Adı
Son kayıt (commit)
Son güncelleme
..
QuickStart Loading commit data...
applauncher Loading commit data...
guiloader Loading commit data...
guistdio Loading commit data...
officeloader Loading commit data...
extendloaderenvironment.cxx Loading commit data...
extendloaderenvironment.hxx Loading commit data...
lwrapw.cxx Loading commit data...
main.h Loading commit data...
rwrapw.cxx Loading commit data...
sowrapper.cxx Loading commit data...
unoinfo.cxx Loading commit data...
wrapper.h Loading commit data...
wrapperw.cxx Loading commit data...