[RFC] add --pidfile switch to write libo pid to a file

Riccardo Magliocchetti riccardo.magliocchetti at gmail.com
Mon Mar 18 09:27:47 PDT 2013


Hi Michael,

Il 18/03/2013 16:21, Michael Meeks ha scritto:
>
> On Mon, 2013-03-18 at 14:41 +0100, Riccardo Magliocchetti wrote:
>> The standard practice is to use just a plain file with the pid inside,
>> other tools won't parse an ini file just to find the pid.
>
> 	Seems unlikely to cause any real harm to me :-)
>
> 	Out of interest, did you see the liblibreoffice work that's Jack and I
> started ? cf. smoketest/libtest.cxx and desktop/inc etc. I'd love to
> move the current headless uses of libreoffice further up the stack, such
> that the forking / managing of helper processes can be done in native
> code, and (ultimately) pushed back down into LibreOffice as much as
> possible.

I didn't see that, thanks for sharing. Note to self: the interesting 
bits are in desktop/source/lib/init.cxx

> 	Of course, liblibreoffice still suffers from several problems -
> bootstrapping nasties and so on ;-) but the basic idea is to allow a
> faster, smaller headless experience and re-use of the filter logic;
> alongside a dependency-free ~entirely virtual shared library.
>
> 	A longer way to go there though of course; help appreciated.

The idea is indeed sound, also it looks like that an hypothetical 
libreoffice daemon can be implemented in a sensible number of lines :)

thanks,
riccardo


More information about the LibreOffice mailing list