On Tue, 2012-06-19 at 13:38 +0100, Caolán McNamara wrote:
On Mon, 2012-06-18 at 13:40 +0200, Andras Timar wrote:
2012/6/18 Stephan Bergmann <sbergman@redhat.com>:
<http://cgit.freedesktop.org/libreoffice/core/commit/?id=d5e9c2e3e85a2bcdd6a0b2088253fc133e52e831>
"fdo#50603: Close fds across a restart of soffice on Mac OS X" fixes that on
master, and I already backported it to libreoffice-3-6.
pushed to libreoffice-3-5
I'll take that as a +1 for 3-5-5 and add a +1 of my own. So one more
review for 3-5-5 I believe.
It looks fine to me; I'll cherry-pick it.
It -looks- like you do this on every startup, when in fact we really
only want to do it -before- we run 'exec' in this rather rare re-start
condition :-)
Since max-fx can be quite large, and each syscall takes an appreciable
time most Linux spawn impl's go to the bother of opening /proc/fds,
parsing it and closing up to max-really-open-fd - which tends to be a
much smaller number :-) [ and all of this down to the uber-dumb default
of CLOEXEC that should never have been ].
Ergo, I'd be happier if on master we only did this prior to the exec in
the unusual case. Really nice catch though !
Thanks !
Michael.
--
michael.meeks@suse.com <><, Pseudo Engineer, itinerant idiot
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.