logo       

Changes to fork() in Solaris 10: msg#00080

Subject: Changes to fork() in Solaris 10
FYI, the semantics of fork() are changing in Solaris 10:

        In all previous Solaris releases back to the
        first that contained Posix threads (pthreads), the definition
        of the semantics of fork(2) has been problematic.

        In particular, for multithreaded processes not linked with
        -lpthread, fork() replicates all of the parent process's
        threads in the child (the so-called forkall() semantics),
        whereas for a process linked with -lpthread, fork() becomes
        fork1() and only the calling thread is replicated in the
        child of fork().

        If this is not confusing enough, a process not linked with
        -lpthread can execute dlopen() of some library that is linked
        with -lpthread and thereby itself become linked with libpthread
        on the fly.  If this happens, the definition of fork() changes
        to fork1() on the fly and there is nothing the process can do
        to detect this or to protect against it since there is no
        forkall() interface in the system.

        The change to libc is small, just make fork() be a synonym for
        fork1() and change the name of the previous fork() to forkall().
        The remainder of the change is to find all instances of fork()
        in Solaris and change them to forkall() if appropriate.

I don't think this will have any effect on Perl as it already links with pthread when built threaded, so this is just a heads-up.

--
Alan Burlison
--




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe