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.=

<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=
+ =C2=A0 thread subprocess and not of the main process, the NPTL implementa=
+ =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=
 =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>
</blockquote><div class=3D"HOEnZb"><div class=3D"h5">
LibreOffice mailing list<br>
<a href=3D"mailto:LibreOffice at" target=3D"_blank">Libr=
eOffice at lists.freedesktop.<u></u>org</a><br>
<a href=3D"" targe=
</div></div></blockquote></div><br><br clear=3D"all"><br>-- <br>Arnaud Vers=


More information about the LibreOffice mailing list