linux-um archives
 help / color / mirror / Atom feed
From: Blaisorblade <blaisorblade_spam@yahoo.it>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: "Henrik Nordstrom" <uml@hno.marasystems.com>,
	"Geert Uytterhoeven" <geert@linux-m68k.org>,
	stian@nixia.no, "Bodo Stroesser" <bstroesser@fujitsu-siemens.com>,
	"Jeff Dike" <jdike@addtoit.com>,
	"Roland Kaeser" <roli8200@yahoo.de>,
	"Nuno Silva" <nuno.silva@vgertech.com>,
	"Antoine Martin" <antoine@nagafix.co.uk>,
	"Sven K�hler" <skoehler@upb.de>,
	"Dennis Muhlestein" <devel@muhlesteins.com>
Subject: Re: [uml-devel] Re: Stop at startup on 2.6 NPTL hosts
Date: Mon, 15 Nov 2004 18:17:13 +0100	[thread overview]
Message-ID: <200411151817.15178.blaisorblade_spam@yahoo.it> (raw)
In-Reply-To: <Pine.LNX.4.61.0411102218520.3589@filer.marasystems.com>

On Wednesday 10 November 2004 22:19, Henrik Nordstrom wrote:
> On Wed, 10 Nov 2004, Geert Uytterhoeven wrote:
> > Why? getpid() is just an API call. No one guarantees it's actually a
> > syscall. And IMHO caching getpid() is allowed, since the returned value
> > won't change anyway.
The cache must be cleared on fork() (which is done) and on clone().

> And in case of pthreads SHOULD be different from the Linux process ID.
He was misunderstanding the thread - UML calls clone() without CLONE_THREAD, 
so that on this aspect it is fork()-like, so no thread group is created, just 
a child process. Which has a different PID. But glibc does not clean the 
thread-local-storage (or just the getpid() cached value in it) appropriately 
when using clone().
-- 
Paolo Giarrusso, aka Blaisorblade
Linux registered user n. 292729


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  reply	other threads:[~2004-11-15 17:19 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-29  9:26 [uml-devel] UML Kernel 2.6.7 Nothing happens Roland Kaeser
2004-11-02 18:52 ` Stop at startup on 2.6 NPTL hosts (was: Re: [uml-devel] UML Kernel 2.6.7 Nothing happens) Blaisorblade
2004-11-02 23:43   ` [uml-devel] Re: Stop at startup on 2.6 NPTL hosts Sven Köhler
2004-11-03  3:04   ` Nuno Silva
2004-11-03  8:32     ` Gerd Knorr
2004-11-03 15:59       ` Blaisorblade
2004-11-03 20:10         ` Gerd Knorr
2004-11-03 22:17           ` Blaisorblade
2004-11-04  8:40       ` Nuno Silva
2004-11-09 16:42   ` Bodo Stroesser
2004-11-09 17:29     ` Adam Heath
2004-11-09 17:32       ` Bodo Stroesser
2004-11-09 18:23         ` Bodo Stroesser
2004-11-09 19:11     ` Blaisorblade
2004-11-10  8:36       ` stian
2004-11-10  9:07         ` Geert Uytterhoeven
2004-11-10 12:15           ` Bodo Stroesser
2004-11-10 12:47             ` Geert Uytterhoeven
2004-11-10 14:32               ` Blaisorblade
2004-11-10 14:44             ` Sven Köhler
2004-11-10 21:19           ` Henrik Nordstrom
2004-11-15 17:17             ` Blaisorblade [this message]
2004-11-10 17:16         ` Blaisorblade

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200411151817.15178.blaisorblade_spam@yahoo.it \
    --to=blaisorblade_spam@yahoo.it \
    --cc=antoine@nagafix.co.uk \
    --cc=bstroesser@fujitsu-siemens.com \
    --cc=devel@muhlesteins.com \
    --cc=geert@linux-m68k.org \
    --cc=jdike@addtoit.com \
    --cc=nuno.silva@vgertech.com \
    --cc=roli8200@yahoo.de \
    --cc=skoehler@upb.de \
    --cc=stian@nixia.no \
    --cc=uml@hno.marasystems.com \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox