Re: What is the purpose of %fs?



On Fri, 23 Dec 2005 09:17:27 +0100, Josef Moellers <josef.moellers@xxxxxxxxxxxxxxxxxxx> wrote:

Strange thing is that snmpd (my target of investigation, see below) is
single-threaded!

FWIW, I just observed strace'ing ntpq, which is also a single-threaded application, that it calls set_thread_area():

  /tmp/ntpq.strace:23995 1135151027.178186 set_thread_area(
   {entry_number:-1 -> 6, base_addr:0xb7f696c0, limit:1048575, seg_32bit:1,
    contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0

I bet this is part of some library initialization

-Enrique
.