linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* uml: pthreads instead of manual clone()?
@ 2010-04-18 17:50 Jan Kiszka
  2010-05-17 14:41 ` [uml-devel] " Paolo Giarrusso
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2010-04-18 17:50 UTC (permalink / raw)
  To: Jeff Dike; +Cc: user-mode-linux-devel, Linux Kernel Mailing List

[-- Attachment #1: Type: text/plain, Size: 600 bytes --]

Hi Jeff,

is there (still) any reason to use explicit clone() instead of pthreads
to spawn UML kernel threads?

While playing with a patch to finally move os_nsecs to proper
CLOCK_MONOTONIC, I noticed some subtle side-effect: We need to link
against librt for clock_gettime, but that indirectly drags in
libpthread. Now gdb gets unhappy when you try to debug the UML kernel.
It assumes that pthreads are used, but fails to find their IDs and
terminates the session. So the obvious approach appears to be converting
kernel threads to pthreads - if there aren't any know pitfalls.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-05-17 14:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-18 17:50 uml: pthreads instead of manual clone()? Jan Kiszka
2010-05-17 14:41 ` [uml-devel] " Paolo Giarrusso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).