From f1ef1ed6900fa2caf7c5997e8b764c3f82c0a125 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Wed, 23 Nov 2011 15:30:06 +0000 Subject: version information from Arnaud on deprecating the getpid workaround. --- sal/osl/unx/system.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sal') diff --git a/sal/osl/unx/system.c b/sal/osl/unx/system.c index 4041edbde42a..478fdaf520bb 100644 --- a/sal/osl/unx/system.c +++ b/sal/osl/unx/system.c @@ -205,6 +205,10 @@ int macxp_resolveAlias(char *path, int buflen) /* The linux kernel thread implemention, always return the pid of the thread subprocess and not of the main process. So we save the main pid at startup + FIXME: when our Linux base-line is above: + + Linux kernel version 2.6.18 or higher; -> clone() for NTPL + + glibc2 version 2.5 or higher; -> NPTL + Then we get a working getpid() and can remove this hack. */ // Directly from libc.so.6, obviously missing from some unistd.h: -- cgit