[REVIEW 3-5-5 (2/3)][PUSHED 3-5] fdo#50603: Close fds across a restart of soffice on Mac OS X

Stephan Bergmann sbergman at redhat.com
Tue Jun 19 23:45:40 PDT 2012


On 06/20/2012 08:41 AM, Stephan Bergmann wrote:
> On 06/19/2012 04:20 PM, Michael Meeks wrote:
>> if (!fork()) {
>> // close all sockets
>> exec (...);
>> }
>>
>> Would presumably do what we want (?) :-)
>
> No, the whole exercise (with exec from self on Mac OS X) is only there
> to prevent forking in the first place (which would confuse Mac OS X's
> view of what the LO process actually is).

What would work, btw, is to rather exec some helper app that closes all 
fds and then in turn execs soffice.  But I ditched that in favor of the 
simpler solution.

Stephan


More information about the LibreOffice mailing list