[RFC] add --pidfile switch to write libo pid to a file
Riccardo Magliocchetti
riccardo.magliocchetti at gmail.com
Sat Mar 16 11:55:49 PDT 2013
Hello,
attached a patch to add a switch to have libreoffice store its pid in a
file. I need that so that when libo runs in headless mode i can have a
supervisor process checking if libo is running and in case just restart
it. The error handling is a bit lame, do we have an helper to create a
file with its content with one function call somewhere? that could help
cleaning the pidfile creation code a bit i think.
I have a couple of issues though:
- i can't find where i should put the switch to show in the help output.
- have i placed the actual pid writing in the right place?
Stephan, i've copied the GETPID bits from sal/osl/all/log.cxx, is it ok
for you to move them to sal/osl/process.h and include that file in log.cxx?
thanks,
riccardo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add-switch-to-save-pidfile.diff
Type: text/x-diff
Size: 3393 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130316/c93555e5/attachment.diff>
More information about the LibreOffice
mailing list