No subject


Wed Dec 7 02:14:14 PST 2011


GLIBC__.__GLIBC_MINOR__ < 2.4, right? =C2=A0So, since we would not care =
about glibc 1, anyway, the || should be replaced with a && I think.=
<br>


<br>
Stephan<br>
<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
+/* The linux kernel 2.4 getpid implemention always return the pid of the<b=
r>
+ =C2=A0 thread subprocess and not of the main process, the NPTL implementa=
tion<br>
+ =C2=A0 with a Linux kernel 2.6 kernel return the pid. So when possibly<br=
>
+ =C2=A0 their is the wrong implementation of getpid, we save the pid at st=
artup.<br>
 =C2=A0 =C2=A0FIXME: when our Linux base-line is above:<br>
- =C2=A0 =C2=A0 =C2=A0 =C2=A0+ Linux kernel version 2.6.18 or higher; -&gt;=
 clone() for NTPL<br>
- =C2=A0 =C2=A0 =C2=A0 =C2=A0+ glibc2 version 2.5 or higher; -&gt; NPTL<br>
+ =C2=A0 =C2=A0 =C2=A0 =C2=A0+ Linux kernel version 2.6 or higher; -&gt; cl=
one() for NTPL<br>
+ =C2=A0 =C2=A0 =C2=A0 =C2=A0+ glibc2 version 2.4 or higher; -&gt; No longe=
r LinuxThreads, only NPTL<br>
 =C2=A0 =C2=A0Then we get a working getpid() and can remove this hack.<br>
+ =C2=A0 FIXME: getppid is also wrong in this situation<br>
=C2=A0*/<br>
</blockquote><div class=3D"HOEnZb"><div class=3D"h5">
<br>
<br>
______________________________<u></u>_________________<br>
LibreOffice mailing list<br>
<a href=3D"mailto:LibreOffice at lists.freedesktop.org" target=3D"_blank">Libr=
eOffice at lists.freedesktop.<u></u>org</a><br>
<a href=3D"http://lists.freedesktop.org/mailman/listinfo/libreoffice" targe=
t=3D"_blank">http://lists.freedesktop.org/<u></u>mailman/listinfo/libreoffi=
ce</a><br>
</div></div></blockquote></div><br><br clear=3D"all"><br>-- <br>Arnaud Vers=
ini<br>

--f46d040712a72051bf04b37e869d--


More information about the LibreOffice mailing list